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