1 write to Parent
Microsoft.ML.Ensemble (1)
PipelineEnsemble.cs (1)
48Parent = parent;
26 references to Parent
Microsoft.ML.Ensemble (26)
PipelineEnsemble.cs (26)
41public ISchemaBindableMapper Bindable => Parent; 50OutputSchema = ScoreSchemaFactory.Create(Parent.ScoreType, Parent._scoreColumnKind); 52for (int i = 0; i < Parent._inputCols.Length; i++) 54var name = Parent._inputCols[i]; 57throw Parent.Host.ExceptSchemaMismatch(nameof(InputRoleMappedSchema), "input", name); 61Mappers = new ISchemaBoundRowMapper[Parent.PredictorModels.Length]; 62BoundPipelines = new IRowToRowMapper[Parent.PredictorModels.Length]; 63ScoreCols = new int[Parent.PredictorModels.Length]; 67var emptyDv = new EmptyDataView(Parent.Host, schema.Schema); 68Parent.PredictorModels[i].PrepareData(Parent.Host, emptyDv, out RoleMappedData rmd, out IPredictor predictor); 71var bindable = ScoreUtils.GetSchemaBindableMapper(Parent.Host, Parent.PredictorModels[i].Predictor); 72Mappers[i] = bindable.Bind(Parent.Host, rmd.Schema) as ISchemaBoundRowMapper; 74throw Parent.Host.Except("Predictor {0} is not a row to row mapper", i); 79throw Parent.Host.Except("Predictor {0} does not contain a score column", i); 83var dv = new EmptyDataView(Parent.Host, schema.Schema); 84var tm = new TransformModelImpl(Parent.Host, dv, dv); 85var pipeline = Parent.PredictorModels[i].TransformModel.Apply(Parent.Host, tm); 86BoundPipelines[i] = pipeline.AsRowToRowMapper(Parent.Host); 88throw Parent.Host.Except("Transform pipeline {0} contains transforms that do not implement IRowToRowMapper", i); 164Parent.Host.Assert(0 <= i && i < Mappers.Length); 165Parent.Host.Check(Mappers[i].InputRoleMappedSchema.Label.HasValue, "Mapper was not trained using a label column"); 176Parent.Host.Assert(0 <= i && i < Mappers.Length);