1 interface inheriting from ISchemaBoundMapper
Microsoft.ML.Core (1)
Data\ISchemaBindableMapper.cs (1)
62
internal 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,
27
ISchemaBoundMapper
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)
34
public IComponentFactory<IDataView,
ISchemaBoundMapper
, RoleMappedSchema, IDataScorerTransform> Scorer;
352
private readonly IComponentFactory<IDataView,
ISchemaBoundMapper
, RoleMappedSchema, IDataScorerTransform> _scorer;
392
IComponentFactory<IDataView,
ISchemaBoundMapper
, RoleMappedSchema, IDataScorerTransform> scorer,
531
var
mapper = bindable.Bind(host, testData.Schema);
Commands\ScoreCommand.cs (8)
21
using TScorerFactory = IComponentFactory<IDataView,
ISchemaBoundMapper
, RoleMappedSchema, IDataScorerTransform>;
37
internal delegate void SignatureDataScorer(IDataView data,
ISchemaBoundMapper
mapper, RoleMappedSchema trainSchema);
122
var
mapper = bindable.Bind(Host, schema);
243
var sc = GetScorerComponentAndMapper(predictor, null, data.Schema, env, null, out
var
mapper);
268
var sc = GetScorerComponentAndMapper(predictor, scorer, schema, env, mapperFactory, out
var
mapper);
281
out
ISchemaBoundMapper
mapper)
303
ISchemaBoundMapper
mapper,
321
Func<IHostEnvironment, IDataView,
ISchemaBoundMapper
, RoleMappedSchema, IDataScorerTransform> factoryFunc;
Commands\TestCommand.cs (1)
48
public IComponentFactory<IDataView,
ISchemaBoundMapper
, RoleMappedSchema, IDataScorerTransform> Scorer;
Commands\TrainTestCommand.cs (1)
32
public 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)
800
public
ISchemaBoundMapper
Bind(IHostEnvironment env, RoleMappedSchema schema)
878
var
bound = bindable.Bind(env, schema);
Scorers\BinaryClassifierScorer.cs (6)
55
private static
ISchemaBoundMapper
WrapIfNeeded(IHostEnvironment env,
ISchemaBoundMapper
mapper, RoleMappedSchema trainSchema)
87
private static bool CanWrap(
ISchemaBoundMapper
mapper, DataViewType labelNameType)
105
private static
ISchemaBoundMapper
WrapCore<T>(IHostEnvironment env,
ISchemaBoundMapper
mapper, RoleMappedSchema trainSchema)
126
internal BinaryClassifierScorer(IHostEnvironment env, Arguments args, IDataView data,
ISchemaBoundMapper
mapper, RoleMappedSchema trainSchema)
Scorers\ClusteringScorer.cs (1)
45
internal ClusteringScorer(IHostEnvironment env, Arguments args, IDataView data,
ISchemaBoundMapper
mapper, RoleMappedSchema trainSchema)
Scorers\FeatureContributionCalculation.cs (3)
56
private static IDataScorerTransform Create(IHostEnvironment env, Arguments args, IDataView data,
ISchemaBoundMapper
mapper, RoleMappedSchema trainSchema)
162
public
ISchemaBoundMapper
Bind(IHostEnvironment env, RoleMappedSchema schema)
322
var
genericMapper = parent.GenericMapper.Bind(_env, schema);
Scorers\GenericScorer.cs (2)
74
var
mapper = bindable.Bind(env, new RoleMappedSchema(input, roles));
154
ISchemaBoundMapper
mapper, RoleMappedSchema trainSchema)
Scorers\MulticlassClassificationScorer.cs (19)
85
private readonly Func<
ISchemaBoundMapper
, DataViewType, bool> _canWrap;
107
private LabelNameBindableMapper(IHostEnvironment env,
ISchemaBoundMapper
mapper, VectorDataViewType type, Delegate getter,
108
string metadataKind, Func<
ISchemaBoundMapper
, DataViewType, bool> canWrap)
114
string metadataKind, Func<
ISchemaBoundMapper
, DataViewType, bool> canWrap)
229
ISchemaBoundMapper
ISchemaBindableMapper.Bind(IHostEnvironment env, RoleMappedSchema schema)
231
var
innerBound = _bindable.Bind(env, schema);
238
internal static
ISchemaBoundMapper
CreateBound<T>(IHostEnvironment env, ISchemaBoundRowMapper mapper, VectorDataViewType type, Delegate getter,
239
string metadataKind, Func<
ISchemaBoundMapper
, DataViewType, bool> canWrap)
262
private readonly Func<
ISchemaBoundMapper
, DataViewType, bool> _canWrap;
283
string metadataKind, Func<
ISchemaBoundMapper
, DataViewType, bool> canWrap)
405
private static
ISchemaBoundMapper
WrapIfNeeded(IHostEnvironment env,
ISchemaBoundMapper
mapper, RoleMappedSchema trainSchema)
437
internal static bool CanWrapTrainingLabels(
ISchemaBoundMapper
mapper, DataViewType labelNameType)
445
internal static bool GetTypesForWrapping(
ISchemaBoundMapper
mapper, DataViewType labelNameType, string metaKind, out DataViewType scoreType)
477
internal static bool CanWrapSlotNames(
ISchemaBoundMapper
mapper, DataViewType labelNameType)
485
internal static
ISchemaBoundMapper
WrapCore<T>(IHostEnvironment env,
ISchemaBoundMapper
mapper, RoleMappedSchema trainSchema)
503
var
resultMapper = mapper;
512
internal MulticlassClassificationScorer(IHostEnvironment env, Arguments args, IDataView data,
ISchemaBoundMapper
mapper, RoleMappedSchema trainSchema)
Scorers\PredictedLabelScorerBase.cs (3)
115
var
mapper = bindable.Bind(env, schema);
143
var
mapper = bindable.Bind(env, new RoleMappedSchema(input, roles));
283
ISchemaBoundMapper
mapper, RoleMappedSchema trainSchema, string registrationName, string scoreColKind, string scoreColName,
Scorers\QuantileRegressionScorer.cs (1)
32
private 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
330
public readonly
ISchemaBoundMapper
Mapper;
345
protected ScorerBindingsBase(DataViewSchema input,
ISchemaBoundMapper
mapper, string suffix, bool user, params string[] namesDerived)
362
private static string[] GetOutputNames(
ISchemaBoundMapper
mapper, string suffix, string[] namesDerived)
Scorers\SchemaBindablePredictorWrapper.cs (6)
120
ISchemaBoundMapper
ISchemaBindableMapper.Bind(IHostEnvironment env, RoleMappedSchema schema)
155
private protected abstract
ISchemaBoundMapper
BindCore(IChannel ch, RoleMappedSchema schema);
355
private protected override
ISchemaBoundMapper
BindCore(IChannel ch, RoleMappedSchema schema) =>
492
private protected override
ISchemaBoundMapper
BindCore(IChannel ch, RoleMappedSchema schema)
621
/// wrapper because they need the quantiles to create the <see cref="
ISchemaBoundMapper
"/>.
695
private protected override
ISchemaBoundMapper
BindCore(IChannel ch, RoleMappedSchema schema) =>
Transforms\TrainAndScoreTransformer.cs (2)
42
public IComponentFactory<IDataView,
ISchemaBoundMapper
, RoleMappedSchema, IDataScorerTransform> Scorer;
159
public IComponentFactory<IDataView,
ISchemaBoundMapper
, RoleMappedSchema, IDataScorerTransform> Scorer;
Utilities\ComponentCreation.cs (2)
163
Type factoryType = typeof(IComponentFactory<IDataView,
ISchemaBoundMapper
, RoleMappedSchema, IDataScorerTransform>);
172
var
mapper = bindable.Bind(env, data.Schema);
Microsoft.ML.Ensemble (3)
PipelineEnsemble.cs (3)
225
private protected override
ISchemaBoundMapper
BindCore(IHostEnvironment env, RoleMappedSchema schema)
565
ISchemaBoundMapper
ISchemaBindableMapper.Bind(IHostEnvironment env, RoleMappedSchema schema) => BindCore(env, schema);
567
private protected abstract
ISchemaBoundMapper
BindCore(IHostEnvironment env, RoleMappedSchema schema);
Microsoft.ML.EntryPoints (2)
ScoreModel.cs (2)
85
var
mapper = bindable.Bind(host, data.Schema);
135
var
mapper = bindable.Bind(host, data.Schema);
Microsoft.ML.FastTree (5)
TreeEnsembleFeaturizer.cs (5)
522
ISchemaBoundMapper
ISchemaBindableMapper.Bind(IHostEnvironment env, RoleMappedSchema schema)
589
TreeEnsembleFeaturizerBindableMapper.Arguments args, IDataView data,
ISchemaBoundMapper
mapper, RoleMappedSchema trainSchema)
663
var
bound = bindable.Bind(env, data.Schema);
676
trainScoreArgs.Scorer = ComponentFactoryUtils.CreateFromFunction<IDataView,
ISchemaBoundMapper
, RoleMappedSchema, IDataScorerTransform>(
734
var
bound = bindable.Bind(env, data.Schema);
Microsoft.ML.Recommender (1)
MatrixFactorizationPredictor.cs (1)
313
ISchemaBoundMapper
ISchemaBindableMapper.Bind(IHostEnvironment env, RoleMappedSchema schema)
Microsoft.ML.StandardTrainers (1)
FactorizationMachine\FieldAwareFactorizationMachineModelParameters.cs (1)
239
ISchemaBoundMapper
ISchemaBindableMapper.Bind(IHostEnvironment env, RoleMappedSchema schema)
Microsoft.ML.Tests (1)
TrainerEstimators\TreeEnsembleFeaturizerTest.cs (1)
54
var
boundMapper = (treeFeaturizer as ISchemaBindableMapper).Bind(Env, roleMappedSchema);