9 implementations of ISchemaBoundRowMapper
Microsoft.ML.Data (5)
Prediction\Calibrator.cs (1)
645private sealed class Bound : ISchemaBoundRowMapper
Scorers\FeatureContributionCalculation.cs (1)
295private sealed class RowMapper : ISchemaBoundRowMapper
Scorers\MulticlassClassificationScorer.cs (1)
252private sealed class Bound<T> : ISchemaBoundRowMapper
Scorers\SchemaBindablePredictorWrapper.cs (2)
197protected sealed class SingleValueRowMapper : ISchemaBoundRowMapper, IDisposable 506private sealed class CalibratedRowMapper : ISchemaBoundRowMapper
Microsoft.ML.Ensemble (1)
PipelineEnsemble.cs (1)
32private abstract class BoundBase : ISchemaBoundRowMapper
Microsoft.ML.FastTree (1)
TreeEnsembleFeaturizer.cs (1)
67private sealed class BoundMapper : ISchemaBoundRowMapper
Microsoft.ML.Recommender (1)
MatrixFactorizationPredictor.cs (1)
320private sealed class RowMapper : ISchemaBoundRowMapper
Microsoft.ML.StandardTrainers (1)
FactorizationMachine\FieldAwareFactorizationMachineUtils.cs (1)
57internal sealed class FieldAwareFactorizationMachineScalarRowMapper : ISchemaBoundRowMapper
68 references to ISchemaBoundRowMapper
Microsoft.ML.Core (5)
Data\IRowToRowMapper.cs (1)
14/// This interface is similar to <see cref="ISchemaBoundRowMapper"/>, except it does not have any input role mappings,
Data\ISchemaBindableMapper.cs (4)
15/// needed by the mapper to compute its output. The <see cref="ISchemaBoundRowMapper"/> is an extention to this interface, that 17/// the input columns (but there is nothing preventing an <see cref="ISchemaBoundRowMapper"/> from mapping input columns directly to outputs). 20/// includes implementing a corresponding <see cref="ISchemaBoundMapper"/> (or <see cref="ISchemaBoundRowMapper"/>) and a corresponding ISchema 21/// for the output schema of the <see cref="ISchemaBoundMapper"/>. In case the <see cref="ISchemaBoundRowMapper"/> interface is implemented,
Microsoft.ML.Data (54)
Prediction\Calibrator.cs (4)
651private readonly ISchemaBoundRowMapper _predictor; 664_predictor = _parent._bindable.Bind(env, schema) as ISchemaBoundRowMapper; 676IEnumerable<DataViewSchema.Column> ISchemaBoundRowMapper.GetDependenciesForNewColumns(IEnumerable<DataViewSchema.Column> dependingColumns) 689DataViewRow ISchemaBoundRowMapper.GetRow(DataViewRow input, IEnumerable<DataViewSchema.Column> activeColumns)
Scorers\BinaryClassifierScorer.cs (5)
92ISchemaBoundRowMapper rowMapper = mapper as ISchemaBoundRowMapper; 110env.Assert(mapper is ISchemaBoundRowMapper); 122return MulticlassClassificationScorer.LabelNameBindableMapper.CreateBound<T>(env, (ISchemaBoundRowMapper)mapper, type, getter, AnnotationUtils.Kinds.TrainingLabelValues, CanWrap); 301private static DataViewType GetPredColType(DataViewType scoreType, ISchemaBoundRowMapper mapper)
Scorers\ClusteringScorer.cs (1)
135private static DataViewType GetPredColType(DataViewType scoreType, ISchemaBoundRowMapper mapper)
Scorers\FeatureContributionCalculation.cs (4)
298private readonly ISchemaBoundRowMapper _genericRowMapper; 323_genericRowMapper = genericMapper as ISchemaBoundRowMapper; 356IEnumerable<DataViewSchema.Column> ISchemaBoundRowMapper.GetDependenciesForNewColumns(IEnumerable<DataViewSchema.Column> dependingColumns) 364DataViewRow ISchemaBoundRowMapper.GetRow(DataViewRow input, IEnumerable<DataViewSchema.Column> activeColumns)
Scorers\GenericScorer.cs (6)
41private Bindings(DataViewSchema input, ISchemaBoundRowMapper mapper, string suffix, bool user) 50public static Bindings Create(DataViewSchema input, ISchemaBoundRowMapper mapper, string suffix, bool user = true) 79var rowMapper = mapper as ISchemaBoundRowMapper; 161var rowMapper = mapper as ISchemaBoundRowMapper;
Scorers\MulticlassClassificationScorer.cs (13)
234Contracts.Assert(innerBound is ISchemaBoundRowMapper); 235return Utils.MarshalInvoke(CreateBound<int>, _type.ItemType.RawType, env, (ISchemaBoundRowMapper)innerBound, _type, _getter, _metadataKind, _canWrap); 238internal static ISchemaBoundMapper CreateBound<T>(IHostEnvironment env, ISchemaBoundRowMapper mapper, VectorDataViewType type, Delegate getter, 256private readonly ISchemaBoundRowMapper _mapper; 282public Bound(IHostEnvironment env, ISchemaBoundRowMapper mapper, VectorDataViewType type, ValueGetter<VBuffer<T>> getter, 341IEnumerable<DataViewSchema.Column> ISchemaBoundRowMapper.GetDependenciesForNewColumns(IEnumerable<DataViewSchema.Column> dependingColumns) 346DataViewRow ISchemaBoundRowMapper.GetRow(DataViewRow input, IEnumerable<DataViewSchema.Column> activeColumns) 450ISchemaBoundRowMapper rowMapper = mapper as ISchemaBoundRowMapper; 490env.Assert(mapper is ISchemaBoundRowMapper); 505resultMapper = LabelNameBindableMapper.CreateBound<T>(env, (ISchemaBoundRowMapper)resultMapper, type as VectorDataViewType, getter, AnnotationUtils.Kinds.TrainingLabelValues, CanWrapTrainingLabels); 507resultMapper = LabelNameBindableMapper.CreateBound<T>(env, (ISchemaBoundRowMapper)resultMapper, type as VectorDataViewType, getter, AnnotationUtils.Kinds.SlotNames, CanWrapSlotNames); 603private static DataViewType GetPredColType(DataViewType scoreType, ISchemaBoundRowMapper mapper) => new KeyDataViewType(typeof(uint), scoreType.GetVectorSize());
Scorers\PredictedLabelScorerBase.cs (12)
52private BindingsImpl(DataViewSchema input, ISchemaBoundRowMapper mapper, string suffix, string scoreColumnKind, 93public static BindingsImpl Create(DataViewSchema input, ISchemaBoundRowMapper mapper, string suffix, 116var rowMapper = mapper as ISchemaBoundRowMapper; 127Func<DataViewType, bool> outputTypeMatches, Func<DataViewType, ISchemaBoundRowMapper, DataViewType> getPredColType) 144var rowMapper = mapper as ISchemaBoundRowMapper; 284Func<DataViewType, bool> outputTypeMatches, Func<DataViewType, ISchemaBoundRowMapper, DataViewType> getPredColType, string predictedLabelColumnName = DefaultColumnNames.PredictedLabel) 293var rowMapper = mapper as ISchemaBoundRowMapper; 294Host.CheckParam(rowMapper != null, nameof(mapper), "mapper should implement " + nameof(ISchemaBoundRowMapper)); 318Func<DataViewType, bool> outputTypeMatches, Func<DataViewType, ISchemaBoundRowMapper, DataViewType> getPredColType)
Scorers\RowToRowScorerBase.cs (3)
17/// underlying <see cref="ISchemaBoundRowMapper"/> should be exposed, as well as zero or more 28public readonly ISchemaBoundRowMapper RowMapper; 30protected BindingsBase(DataViewSchema schema, ISchemaBoundRowMapper mapper, string suffix, bool user, params string[] namesDerived)
Scorers\SchemaBindablePredictorWrapper.cs (6)
192/// The <see cref="ISchemaBoundRowMapper"/> implementation for predictor wrappers that produce a 220IEnumerable<DataViewSchema.Column> ISchemaBoundRowMapper.GetDependenciesForNewColumns(IEnumerable<DataViewSchema.Column> dependingColumns) 235DataViewRow ISchemaBoundRowMapper.GetRow(DataViewRow input, IEnumerable<DataViewSchema.Column> activeColumns) 503/// The <see cref="ISchemaBoundRowMapper"/> implementation for distribution predictor wrappers that produce 539IEnumerable<DataViewSchema.Column> ISchemaBoundRowMapper.GetDependenciesForNewColumns(IEnumerable<DataViewSchema.Column> dependingColumns) 609DataViewRow ISchemaBoundRowMapper.GetRow(DataViewRow input, IEnumerable<DataViewSchema.Column> activeColumns)
Microsoft.ML.Ensemble (5)
PipelineEnsemble.cs (5)
37protected readonly ISchemaBoundRowMapper[] Mappers; 61Mappers = new ISchemaBoundRowMapper[Parent.PredictorModels.Length]; 72Mappers[i] = bindable.Bind(Parent.Host, rmd.Schema) as ISchemaBoundRowMapper; 95IEnumerable<DataViewSchema.Column> ISchemaBoundRowMapper.GetDependenciesForNewColumns(IEnumerable<DataViewSchema.Column> dependingColumns) 108DataViewRow ISchemaBoundRowMapper.GetRow(DataViewRow input, IEnumerable<DataViewSchema.Column> activeColumns)
Microsoft.ML.FastTree (1)
TreeEnsembleFeaturizer.cs (1)
175DataViewRow ISchemaBoundRowMapper.GetRow(DataViewRow input, IEnumerable<DataViewSchema.Column> activeColumns)
Microsoft.ML.Recommender (1)
MatrixFactorizationPredictor.cs (1)
411DataViewRow ISchemaBoundRowMapper.GetRow(DataViewRow input, IEnumerable<DataViewSchema.Column> activeColumns)
Microsoft.ML.StandardTrainers (2)
FactorizationMachine\FieldAwareFactorizationMachineUtils.cs (2)
99DataViewRow ISchemaBoundRowMapper.GetRow(DataViewRow input, IEnumerable<DataViewSchema.Column> activeColumns) 143IEnumerable<DataViewSchema.Column> ISchemaBoundRowMapper.GetDependenciesForNewColumns(IEnumerable<DataViewSchema.Column> columns)