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