2 writes to PredictorModels
Microsoft.ML.Ensemble (2)
PipelineEnsemble.cs (2)
410
PredictorModels
= predictors;
466
PredictorModels
= new PredictorModel[length];
32 references to PredictorModels
Microsoft.ML.Ensemble (32)
EntryPoints\PipelineEnsemble.cs (4)
47
var summaries = new IDataView[ensemble.
PredictorModels
.Length];
48
var stats = new IDataView[ensemble.
PredictorModels
.Length];
49
for (int i = 0; i < ensemble.
PredictorModels
.Length; i++)
51
var pm = ensemble.
PredictorModels
[i];
PipelineEnsemble.cs (28)
61
Mappers = new ISchemaBoundRowMapper[Parent.
PredictorModels
.Length];
62
BoundPipelines = new IRowToRowMapper[Parent.
PredictorModels
.Length];
63
ScoreCols = new int[Parent.
PredictorModels
.Length];
68
Parent.
PredictorModels
[i].PrepareData(Parent.Host, emptyDv, out RoleMappedData rmd, out IPredictor predictor);
71
var bindable = ScoreUtils.GetSchemaBindableMapper(Parent.Host, Parent.
PredictorModels
[i].Predictor);
85
var pipeline = Parent.
PredictorModels
[i].TransformModel.Apply(Parent.Host, tm);
286
int classCount = CheckLabelColumn(Host,
PredictorModels
, false);
302
CheckBinaryLabel(true, Host,
PredictorModels
);
309
CheckBinaryLabel(false, Host,
PredictorModels
);
467
for (int i = 0; i <
PredictorModels
.Length; i++)
474
PredictorModels
[i] = new PredictorModelImpl(Host, ent.Stream);
499
Host.AssertNonEmpty(
PredictorModels
);
500
ctx.Writer.Write(
PredictorModels
.Length);
502
for (int i = 0; i <
PredictorModels
.Length; i++)
506
PredictorModels
[i].Save(Host, ent.Stream);
571
for (int i = 0; i <
PredictorModels
.Length; i++)
575
if (!(
PredictorModels
[i].Predictor is ICanSaveSummary summaryModel))
577
writer.WriteLine("Model of type {0}",
PredictorModels
[i].Predictor.GetType().Name);
582
var dv = new EmptyDataView(Host,
PredictorModels
[i].TransformModel.InputSchema);
583
PredictorModels
[i].PrepareData(Host, dv, out RoleMappedData rmd, out IPredictor pred);
708
for (int i = 0; i <
PredictorModels
.Length; i++)
711
var summaryKvps =
PredictorModels
[i].Predictor as ICanGetSummaryInKeyValuePairs;
712
var summaryModel =
PredictorModels
[i].Predictor as ICanSaveSummary;
715
list.Add(new KeyValuePair<string, object>(key,
PredictorModels
[i].Predictor.GetType().Name));
720
var dv = new EmptyDataView(Host,
PredictorModels
[i].TransformModel.InputSchema);
721
PredictorModels
[i].PrepareData(Host, dv, out RoleMappedData rmd, out IPredictor pred);
758
Host.AssertNonEmpty(
PredictorModels
);
759
return
PredictorModels
[0].GetLabelInfo(Host, out labelType);