2 writes to Models
Microsoft.ML.Ensemble (2)
Trainer\EnsembleModelParametersBase.cs (2)
35Models = models; 64Models = new FeatureSubsetModel<TOutput>[count];
28 references to Models
Microsoft.ML.Ensemble (28)
Trainer\EnsembleDistributionModelParameters.cs (9)
84Host.AssertNonEmpty(Models); 86mappers = new IValueMapperDist[Models.Length]; 88for (int i = 0; i < Models.Length; i++) 90var vmd = Models[i].Predictor as IValueMapperDist; 159var model = Models[i]; 197var model = Models[i]; 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\EnsembleModelParameters.cs (5)
74Host.AssertNonEmpty(Models); 76mappers = new IValueMapper[Models.Length]; 78for (int i = 0; i < Models.Length; i++) 80var vm = Models[i].Predictor as IValueMapper; 151var model = Models[i];
Trainer\EnsembleModelParametersBase.cs (9)
83Models[i] = new FeatureSubsetModel<TOutput>(predictor, features, metrics); 104ctx.Writer.Write(Models.Length); 108for (int i = 0; i < Models.Length; i++) 110var model = Models[i]; 134for (int i = 0; i < Models.Length; i++) 138PredictorUtils.SaveText(ch, Models[i].Predictor, schema, writer); 148for (int i = 0; i < Models.Length; i++) 155if (Models[i].Predictor is ICanSaveSummary summaryModel) 158writer.WriteLine("The Model {0} does not support saving summaries", Models[i].GetType().Name);
Trainer\Multiclass\EnsembleMulticlassModelParameters.cs (5)
65Host.AssertNonEmpty(Models); 67mappers = new IValueMapper[Models.Length]; 70for (int i = 0; i < Models.Length; i++) 72var vm = Models[i].Predictor as IValueMapper; 136var model = Models[i];