1 interface inheriting from ISchemaBoundMapper
Microsoft.ML.Core (1)
Data\ISchemaBindableMapper.cs (1)
62internal interface ISchemaBoundRowMapper : ISchemaBoundMapper
90 references to ISchemaBoundMapper
Microsoft.ML.Core (10)
Data\ISchemaBindableMapper.cs (9)
14/// <see cref="ISchemaBoundMapper"/>, which is an interface that has methods to return the names and indices of the input columns 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, 27ISchemaBoundMapper Bind(IHostEnvironment env, RoleMappedSchema schema); 31/// This interface is used to map a schema from input columns to output columns. The <see cref="ISchemaBoundMapper"/> should keep track 38/// The <see cref="RoleMappedSchema"/> that was passed to the <see cref="ISchemaBoundMapper"/> in the binding process. 48/// A property to get back the <see cref="ISchemaBindableMapper"/> that produced this <see cref="ISchemaBoundMapper"/>. 59/// This interface extends <see cref="ISchemaBoundMapper"/>. 80/// the returned value must have the same schema as <see cref="ISchemaBoundMapper.OutputSchema"/>.
Data\RoleMappedSchema.cs (1)
285/// for implementing the <see cref="ISchemaBoundMapper.GetInputColumnRoles"/> method.
Microsoft.ML.Data (67)
Commands\CrossValidationCommand.cs (4)
34public IComponentFactory<IDataView, ISchemaBoundMapper, RoleMappedSchema, IDataScorerTransform> Scorer; 352private readonly IComponentFactory<IDataView, ISchemaBoundMapper, RoleMappedSchema, IDataScorerTransform> _scorer; 392IComponentFactory<IDataView, ISchemaBoundMapper, RoleMappedSchema, IDataScorerTransform> scorer, 531var mapper = bindable.Bind(host, testData.Schema);
Commands\ScoreCommand.cs (8)
21using TScorerFactory = IComponentFactory<IDataView, ISchemaBoundMapper, RoleMappedSchema, IDataScorerTransform>; 37internal delegate void SignatureDataScorer(IDataView data, ISchemaBoundMapper mapper, RoleMappedSchema trainSchema); 122var mapper = bindable.Bind(Host, schema); 243var sc = GetScorerComponentAndMapper(predictor, null, data.Schema, env, null, out var mapper); 268var sc = GetScorerComponentAndMapper(predictor, scorer, schema, env, mapperFactory, out var mapper); 281out ISchemaBoundMapper mapper) 303ISchemaBoundMapper mapper, 321Func<IHostEnvironment, IDataView, ISchemaBoundMapper, RoleMappedSchema, IDataScorerTransform> factoryFunc;
Commands\TestCommand.cs (1)
48public IComponentFactory<IDataView, ISchemaBoundMapper, RoleMappedSchema, IDataScorerTransform> Scorer;
Commands\TrainTestCommand.cs (1)
32public IComponentFactory<IDataView, ISchemaBoundMapper, RoleMappedSchema, IDataScorerTransform> Scorer;
Model\Onnx\ICanSaveOnnx.cs (1)
60/// object, when the <see cref="ISchemaBoundMapper"/> was created that this transform
Model\Pfa\ICanSavePfa.cs (1)
64/// object, when the <see cref="ISchemaBoundMapper"/> was created that this transform
Prediction\Calibrator.cs (2)
800public ISchemaBoundMapper Bind(IHostEnvironment env, RoleMappedSchema schema) 878var bound = bindable.Bind(env, schema);
Scorers\BinaryClassifierScorer.cs (6)
55private static ISchemaBoundMapper WrapIfNeeded(IHostEnvironment env, ISchemaBoundMapper mapper, RoleMappedSchema trainSchema) 87private static bool CanWrap(ISchemaBoundMapper mapper, DataViewType labelNameType) 105private static ISchemaBoundMapper WrapCore<T>(IHostEnvironment env, ISchemaBoundMapper mapper, RoleMappedSchema trainSchema) 126internal BinaryClassifierScorer(IHostEnvironment env, Arguments args, IDataView data, ISchemaBoundMapper mapper, RoleMappedSchema trainSchema)
Scorers\ClusteringScorer.cs (1)
45internal ClusteringScorer(IHostEnvironment env, Arguments args, IDataView data, ISchemaBoundMapper mapper, RoleMappedSchema trainSchema)
Scorers\FeatureContributionCalculation.cs (3)
56private static IDataScorerTransform Create(IHostEnvironment env, Arguments args, IDataView data, ISchemaBoundMapper mapper, RoleMappedSchema trainSchema) 162public ISchemaBoundMapper Bind(IHostEnvironment env, RoleMappedSchema schema) 322var genericMapper = parent.GenericMapper.Bind(_env, schema);
Scorers\GenericScorer.cs (2)
74var mapper = bindable.Bind(env, new RoleMappedSchema(input, roles)); 154ISchemaBoundMapper mapper, RoleMappedSchema trainSchema)
Scorers\MulticlassClassificationScorer.cs (19)
85private readonly Func<ISchemaBoundMapper, DataViewType, bool> _canWrap; 107private LabelNameBindableMapper(IHostEnvironment env, ISchemaBoundMapper mapper, VectorDataViewType type, Delegate getter, 108string metadataKind, Func<ISchemaBoundMapper, DataViewType, bool> canWrap) 114string metadataKind, Func<ISchemaBoundMapper, DataViewType, bool> canWrap) 229ISchemaBoundMapper ISchemaBindableMapper.Bind(IHostEnvironment env, RoleMappedSchema schema) 231var innerBound = _bindable.Bind(env, schema); 238internal static ISchemaBoundMapper CreateBound<T>(IHostEnvironment env, ISchemaBoundRowMapper mapper, VectorDataViewType type, Delegate getter, 239string metadataKind, Func<ISchemaBoundMapper, DataViewType, bool> canWrap) 262private readonly Func<ISchemaBoundMapper, DataViewType, bool> _canWrap; 283string metadataKind, Func<ISchemaBoundMapper, DataViewType, bool> canWrap) 405private static ISchemaBoundMapper WrapIfNeeded(IHostEnvironment env, ISchemaBoundMapper mapper, RoleMappedSchema trainSchema) 437internal static bool CanWrapTrainingLabels(ISchemaBoundMapper mapper, DataViewType labelNameType) 445internal static bool GetTypesForWrapping(ISchemaBoundMapper mapper, DataViewType labelNameType, string metaKind, out DataViewType scoreType) 477internal static bool CanWrapSlotNames(ISchemaBoundMapper mapper, DataViewType labelNameType) 485internal static ISchemaBoundMapper WrapCore<T>(IHostEnvironment env, ISchemaBoundMapper mapper, RoleMappedSchema trainSchema) 503var resultMapper = mapper; 512internal MulticlassClassificationScorer(IHostEnvironment env, Arguments args, IDataView data, ISchemaBoundMapper mapper, RoleMappedSchema trainSchema)
Scorers\PredictedLabelScorerBase.cs (3)
115var mapper = bindable.Bind(env, schema); 143var mapper = bindable.Bind(env, new RoleMappedSchema(input, roles)); 283ISchemaBoundMapper mapper, RoleMappedSchema trainSchema, string registrationName, string scoreColKind, string scoreColName,
Scorers\QuantileRegressionScorer.cs (1)
32private static IDataScorerTransform Create(IHostEnvironment env, Arguments args, IDataView data, ISchemaBoundMapper mapper, RoleMappedSchema trainSchema)
Scorers\RowToRowScorerBase.cs (4)
320/// Base bindings for a scorer based on an <see cref="ISchemaBoundMapper"/>. This assumes that input schema columns 330public readonly ISchemaBoundMapper Mapper; 345protected ScorerBindingsBase(DataViewSchema input, ISchemaBoundMapper mapper, string suffix, bool user, params string[] namesDerived) 362private static string[] GetOutputNames(ISchemaBoundMapper mapper, string suffix, string[] namesDerived)
Scorers\SchemaBindablePredictorWrapper.cs (6)
120ISchemaBoundMapper ISchemaBindableMapper.Bind(IHostEnvironment env, RoleMappedSchema schema) 155private protected abstract ISchemaBoundMapper BindCore(IChannel ch, RoleMappedSchema schema); 355private protected override ISchemaBoundMapper BindCore(IChannel ch, RoleMappedSchema schema) => 492private protected override ISchemaBoundMapper BindCore(IChannel ch, RoleMappedSchema schema) 621/// wrapper because they need the quantiles to create the <see cref="ISchemaBoundMapper"/>. 695private protected override ISchemaBoundMapper BindCore(IChannel ch, RoleMappedSchema schema) =>
Transforms\TrainAndScoreTransformer.cs (2)
42public IComponentFactory<IDataView, ISchemaBoundMapper, RoleMappedSchema, IDataScorerTransform> Scorer; 159public IComponentFactory<IDataView, ISchemaBoundMapper, RoleMappedSchema, IDataScorerTransform> Scorer;
Utilities\ComponentCreation.cs (2)
163Type factoryType = typeof(IComponentFactory<IDataView, ISchemaBoundMapper, RoleMappedSchema, IDataScorerTransform>); 172var mapper = bindable.Bind(env, data.Schema);
Microsoft.ML.Ensemble (3)
PipelineEnsemble.cs (3)
225private protected override ISchemaBoundMapper BindCore(IHostEnvironment env, RoleMappedSchema schema) 565ISchemaBoundMapper ISchemaBindableMapper.Bind(IHostEnvironment env, RoleMappedSchema schema) => BindCore(env, schema); 567private protected abstract ISchemaBoundMapper BindCore(IHostEnvironment env, RoleMappedSchema schema);
Microsoft.ML.EntryPoints (2)
ScoreModel.cs (2)
85var mapper = bindable.Bind(host, data.Schema); 135var mapper = bindable.Bind(host, data.Schema);
Microsoft.ML.FastTree (5)
TreeEnsembleFeaturizer.cs (5)
522ISchemaBoundMapper ISchemaBindableMapper.Bind(IHostEnvironment env, RoleMappedSchema schema) 589TreeEnsembleFeaturizerBindableMapper.Arguments args, IDataView data, ISchemaBoundMapper mapper, RoleMappedSchema trainSchema) 663var bound = bindable.Bind(env, data.Schema); 676trainScoreArgs.Scorer = ComponentFactoryUtils.CreateFromFunction<IDataView, ISchemaBoundMapper, RoleMappedSchema, IDataScorerTransform>( 734var bound = bindable.Bind(env, data.Schema);
Microsoft.ML.Recommender (1)
MatrixFactorizationPredictor.cs (1)
313ISchemaBoundMapper ISchemaBindableMapper.Bind(IHostEnvironment env, RoleMappedSchema schema)
Microsoft.ML.StandardTrainers (1)
FactorizationMachine\FieldAwareFactorizationMachineModelParameters.cs (1)
239ISchemaBoundMapper ISchemaBindableMapper.Bind(IHostEnvironment env, RoleMappedSchema schema)
Microsoft.ML.Tests (1)
TrainerEstimators\TreeEnsembleFeaturizerTest.cs (1)
54var boundMapper = (treeFeaturizer as ISchemaBindableMapper).Bind(Env, roleMappedSchema);