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)
32throw _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, 64throw _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"); 104return new FastTreeBinaryModelParameters(_host, ensemble, featureCount, null); 106var cali = new PlattCalibrator(_host, -1, 0); 107var fastTreeModel = new FastTreeBinaryModelParameters(_host, ensemble, featureCount, null); 108return new FeatureWeightsCalibratedModelParameters<FastTreeBinaryModelParameters, PlattCalibrator>(_host, fastTreeModel, cali); 110return new FastTreeRegressionModelParameters(_host, ensemble, featureCount, null); 112return new FastTreeRankingModelParameters(_host, ensemble, featureCount, null); 114_host.Assert(false); 115throw _host.ExceptNotSupp();