def bestMatch( self, value ):
		# is value an instance of item or item.baseType?
		for typ in self:
			if isinstance(value,typ) or (
				hasattr( typ,'baseType') and
				isinstance(value, typ.baseType)
			):
				return typ
		# XXX should have meta-data on the types to allow better
		# recovery here
		return None
Apply trees in the ensemble to X, return leaf indices.
dataset/ETHPy150Open correl/Transmission-XBMC/resources/lib/basictypes/typeunion.py/TypeUnion.bestMatch--crossover with--dataset/ETHPy150Open scikit-learn/scikit-learn/sklearn/ensemble/gradient_boosting.py/GradientBoostingRegressor.apply