1 write to _host
Microsoft.ML.FastTree (1)
TreeEnsemble\TreeEnsembleCombiner.cs (1)
23
_host
= env.Register("TreeEnsembleCombiner");
15 references to _host
Microsoft.ML.FastTree (15)
TreeEnsemble\TreeEnsembleCombiner.cs (15)
32
throw
_host
.ExceptUserArg(nameof(kind), $"Tree ensembles can be either of type {nameof(PredictionKind.BinaryClassification)}, " +
39
_host
.CheckValue(models, nameof(models));
50
_host
.CheckValue(predictor, nameof(models), "One of the models is null");
55
_host
.Check(calibrated.WeaklyTypedCalibrator is PlattCalibrator,
64
throw
_host
.Except("Model is not a tree ensemble");
87
_host
.Check((calibrated != null) == binaryClassifier, "Ensemble contains both calibrated and uncalibrated models");
88
_host
.Check(featureCount == tree.InputType.GetValueCount(), "Found models with different number of features");
104
return new FastTreeBinaryModelParameters(
_host
, ensemble, featureCount, null);
106
var cali = new PlattCalibrator(
_host
, -1, 0);
107
var fastTreeModel = new FastTreeBinaryModelParameters(
_host
, ensemble, featureCount, null);
108
return new FeatureWeightsCalibratedModelParameters<FastTreeBinaryModelParameters, PlattCalibrator>(
_host
, fastTreeModel, cali);
110
return new FastTreeRegressionModelParameters(
_host
, ensemble, featureCount, null);
112
return new FastTreeRankingModelParameters(
_host
, ensemble, featureCount, null);
114
_host
.Assert(false);
115
throw
_host
.ExceptNotSupp();