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