1 write to Host
Microsoft.ML.Ensemble (1)
Selector\SubModelSelector\BaseSubModelSelector.cs (1)
25Host = env.Register(name);
24 references to Host
Microsoft.ML.Ensemble (24)
Selector\SubModelSelector\BaseBestPerformanceSelector.cs (1)
33using (var ch = Host.Start("Pruning"))
Selector\SubModelSelector\BaseDiverseSelector.cs (2)
34return _diversityMetricType.CreateComponent(Host); 43Host.Check(vm != null, "Predictor doesn't implement the expected interface");
Selector\SubModelSelector\BaseSubModelSelector.cs (10)
68throw Host.Except("Unrecognized prediction kind '{0}'", PredictionKind); 78using (var ch = Host.Start("Calculate metrics")) 83IDataScorerTransform scorePipe = ScoreUtils.GetScorer(model.Predictor, testData, Host, testData.Schema); 88IEvaluator evaluator = GetEvaluator(Host); 95throw Host.Except("Evaluator did not produce any overall metrics"); 109var scoreCol = EvaluateUtils.GetScoreColumn(Host, scoredSchema, null, nameof(BinaryClassifierMamlEvaluator.ArgumentsBase.ScoreColumn), 113var probCol = EvaluateUtils.GetOptAuxScoreColumn(Host, scoredSchema, null, nameof(BinaryClassifierMamlEvaluator.Arguments.ProbabilityColumn), 120scoreCol = EvaluateUtils.GetScoreColumn(Host, scoredSchema, null, nameof(RegressionMamlEvaluator.Arguments.ScoreColumn), 126scoreCol = EvaluateUtils.GetScoreColumn(Host, scoredSchema, null, nameof(MulticlassClassificationMamlEvaluator.Arguments.ScoreColumn), 131throw Host.Except("Unrecognized prediction kind '{0}'", PredictionKind);
Selector\SubModelSelector\BestDiverseSelectorMulticlass.cs (2)
45Host.Assert(models.Count > 1); 46Host.Assert(predictions.Count == models.Count);
Selector\SubModelSelector\BestPerformanceRegressionSelector.cs (2)
41Host.CheckUserArg(Enum.IsDefined(typeof(RegressionEvaluator.Metrics), args.MetricName), nameof(args.MetricName), "Undefined metric name"); 44Host.Assert(!string.IsNullOrEmpty(_metricName));
Selector\SubModelSelector\BestPerformanceSelector.cs (2)
40Host.CheckUserArg(Enum.IsDefined(typeof(BinaryClassifierEvaluator.Metrics), args.MetricName), 44Host.Assert(!string.IsNullOrEmpty(_metricName));
Selector\SubModelSelector\BestPerformanceSelectorMulticlass.cs (2)
40Host.CheckUserArg(Enum.IsDefined(typeof(MulticlassClassificationEvaluator.Metrics), args.MetricName), 44Host.Assert(!string.IsNullOrEmpty(_metricName));
Selector\SubModelSelector\SubModelDataSelector.cs (3)
34Host.CheckValue(args, nameof(args)); 35Host.CheckParam(0 <= args.ValidationDatasetProportion && args.ValidationDatasetProportion < 1, 38Host.CheckParam(0 < args.LearnersSelectionProportion && args.LearnersSelectionProportion < 1,