2 writes to Metrics
Microsoft.ML.Ensemble (2)
FeatureSubsetModel.cs (1)
35
Metrics
= metrics;
Selector\SubModelSelector\BaseSubModelSelector.cs (1)
98
model.
Metrics
= metrics.ToArray();
14 references to Metrics
Microsoft.ML.Ensemble (14)
Selector\SubModelSelector\BaseBestPerformanceSelector.cs (2)
88
foreach (var kvp in x.
Metrics
)
101
foreach (var kvp in y.
Metrics
)
Selector\SubModelSelector\BaseSubModelSelector.cs (2)
38
foreach (var kvp in model.
Metrics
)
75
if (!needMetrics || model == null || model.
Metrics
!= null)
Trainer\EnsembleDistributionModelParameters.cs (3)
227
if (Combiner is IWeightedAverager weightedAverager && averagedWeights == null && Models[0].
Metrics
!= null)
231
foreach (var m in Models[0].
Metrics
)
241
averagedWeights = Models.SelectMany(model => model.
Metrics
).Where(m => m.Key == metric.Key).Select(m => (Single)m.Value).ToArray();
Trainer\EnsembleModelParametersBase.cs (3)
114
Host.AssertValueOrNull(model.
Metrics
);
115
int numMetrics = Utils.Size(model.
Metrics
);
119
var metric = model.
Metrics
[j];
Trainer\EnsembleTrainerBase.cs (4)
212
if (models.Count == 0 || models[0].
Metrics
== null)
215
ch.Info("{0}| Name of Model |", string.Join("", models[0].
Metrics
.Select(m => string.Format("| {0} |", m.Key))));
218
ch.Info("{0}{1}", string.Join("", model.
Metrics
.Select(m => string.Format("| {0} |", m.Value))), model.Predictor.GetType().Name);
229
models[i].
Metrics
);