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