2 interfaces inheriting from ISchemaBindableMapper
Microsoft.ML.Data (2)
Model\Onnx\ICanSaveOnnx.cs (1)
50internal interface IBindableCanSaveOnnx : ICanSaveOnnx, ISchemaBindableMapper
Model\Pfa\ICanSavePfa.cs (1)
54internal interface IBindableCanSavePfa : ICanSavePfa, ISchemaBindableMapper
8 implementations of ISchemaBindableMapper
Microsoft.ML.Data (4)
Prediction\Calibrator.cs (1)
640internal sealed class SchemaBindableCalibratedModelParameters<TSubModel, TCalibrator> : CalibratedModelParametersBase<TSubModel, TCalibrator>, ISchemaBindableMapper, ICanSaveModel,
Scorers\FeatureContributionCalculation.cs (1)
92private sealed class BindableMapper : ISchemaBindableMapper, ICanSaveModel, IPredictor
Scorers\MulticlassClassificationScorer.cs (1)
67public sealed class LabelNameBindableMapper : ISchemaBindableMapper, ICanSaveModel, IBindableCanSavePfa,
Scorers\SchemaBindablePredictorWrapper.cs (1)
34internal abstract class SchemaBindablePredictorWrapperBase : ISchemaBindableMapper, ICanSaveModel, ICanSaveSummary,
Microsoft.ML.Ensemble (1)
PipelineEnsemble.cs (1)
30ISchemaBindableMapper, ICanSaveSummary, ICanGetSummaryInKeyValuePairs
Microsoft.ML.FastTree (1)
TreeEnsembleFeaturizer.cs (1)
45internal sealed class TreeEnsembleFeaturizerBindableMapper : ISchemaBindableMapper, ICanSaveModel
Microsoft.ML.Recommender (1)
MatrixFactorizationPredictor.cs (1)
35public sealed class MatrixFactorizationModelParameters : IPredictor, ICanSaveModel, ICanSaveInTextFormat, ISchemaBindableMapper
Microsoft.ML.StandardTrainers (1)
FactorizationMachine\FieldAwareFactorizationMachineModelParameters.cs (1)
27public sealed class FieldAwareFactorizationMachineModelParameters : ModelParametersBase<float>, ISchemaBindableMapper
81 references to ISchemaBindableMapper
Microsoft.ML.Core (5)
Data\ISchemaBindableMapper.cs (5)
13/// to columns of that schema). Binding an <see cref="ISchemaBindableMapper"/> to a <see cref="RoleMappedSchema"/> produces an 19/// features column. New predictors can implement <see cref="ISchemaBindableMapper"/> directly. Implementing <see cref="ISchemaBindableMapper"/> 48/// A property to get back the <see cref="ISchemaBindableMapper"/> that produced this <see cref="ISchemaBoundMapper"/>. 50ISchemaBindableMapper Bindable { get; }
Microsoft.ML.Data (56)
Commands\CrossValidationCommand.cs (1)
529var bindable = ScoreUtils.GetSchemaBindableMapper(host, predictor, scorerFactorySettings: _scorer as ICommandLineComponentFactory);
Commands\ScoreCommand.cs (11)
112var bindable = ScoreUtils.GetSchemaBindableMapper(Host, predictor, scorerFactorySettings: scorer as ICommandLineComponentFactory); 256IComponentFactory<IPredictor, ISchemaBindableMapper> mapperFactory = null) 280IComponentFactory<IPredictor, ISchemaBindableMapper> mapperFactory, 285var bindable = GetSchemaBindableMapper(env, predictor, mapperFactory, scorerFactory as ICommandLineComponentFactory); 358/// If the above fails, it checks whether the predictor implements <see cref="ISchemaBindableMapper"/> 362public static ISchemaBindableMapper GetSchemaBindableMapper( 365IComponentFactory<IPredictor, ISchemaBindableMapper> mapperFactory = null, 378if (scorerFactorySettings != null && TryCreateBindableFromScorer(env, predictor, scorerFactorySettings, out var bindable)) 382bindable = predictor as ISchemaBindableMapper; 394ICommandLineComponentFactory scorerSettings, out ISchemaBindableMapper bindable) 401return ComponentCatalog.TryCreateInstance<ISchemaBindableMapper, SignatureBindableMapper>(
Dirty\PredictorInterfaces.cs (2)
32/// Predictor that can specialize for quantile regression. It will produce a <see cref="ISchemaBindableMapper"/>, given 38ISchemaBindableMapper CreateMapper(Double[] quantiles);
Model\Onnx\ICanSaveOnnx.cs (1)
45/// This <see cref="ISchemaBindableMapper"/> is savable in ONNX. Note that this is
Model\Pfa\ICanSavePfa.cs (1)
49/// This <see cref="ISchemaBindableMapper"/> is savable as a PFA. Note that this is
Prediction\Calibrator.cs (3)
654public ISchemaBindableMapper Bindable => _parent; 728private readonly ISchemaBindableMapper _bindable; 877var bindable = ScoreUtils.GetSchemaBindableMapper(env, predictor);
Scorers\FeatureContributionCalculation.cs (6)
22[assembly: LoadableClass(typeof(ISchemaBindableMapper), typeof(FeatureContributionScorer), typeof(FeatureContributionScorer.Arguments), 25[assembly: LoadableClass(typeof(ISchemaBindableMapper), typeof(FeatureContributionScorer), null, typeof(SignatureLoadModel), 75private static ISchemaBindableMapper Create(IHostEnvironment env, Arguments args, IPredictor predictor) 85private static ISchemaBindableMapper Create(IHostEnvironment env, ModelLoadContext ctx) 103public readonly ISchemaBindableMapper GenericMapper; 311public ISchemaBindableMapper Bindable => _parent;
Scorers\GenericScorer.cs (3)
65private static Bindings Create(IHostEnvironment env, ISchemaBindableMapper bindable, DataViewSchema input, 94var bindable = RowMapper.Bindable; 104IHostEnvironment env, ISchemaBindableMapper bindable, DataViewSchema input)
Scorers\MulticlassClassificationScorer.cs (10)
27[assembly: LoadableClass(typeof(ISchemaBindableMapper), typeof(MulticlassClassificationScorer.LabelNameBindableMapper), null, typeof(SignatureLoadModel), 75private readonly ISchemaBindableMapper _bindable; 87internal ISchemaBindableMapper Bindable => _bindable; 113private LabelNameBindableMapper(IHostEnvironment env, ISchemaBindableMapper bindable, VectorDataViewType type, Delegate getter, 137ctx.LoadModel<ISchemaBindableMapper, SignatureLoadModel>(_host, out _bindable, _innerDir); 161private static ISchemaBindableMapper Create(IHostEnvironment env, ModelLoadContext ctx) 206internal ISchemaBindableMapper Clone(ISchemaBindableMapper inner) 229ISchemaBoundMapper ISchemaBindableMapper.Bind(IHostEnvironment env, RoleMappedSchema schema) 268public ISchemaBindableMapper Bindable
Scorers\PredictedLabelScorerBase.cs (3)
105public BindingsImpl ApplyToSchema(DataViewSchema input, ISchemaBindableMapper bindable, IHostEnvironment env) 126IHostEnvironment env, ISchemaBindableMapper bindable, 145env.CheckParam(rowMapper != null, nameof(bindable), "Bindable expected to be an " + nameof(ISchemaBindableMapper) + "!");
Scorers\PredictionTransformer.cs (1)
60private protected ISchemaBindableMapper BindableMapper;
Scorers\QuantileRegressionScorer.cs (2)
16[assembly: LoadableClass(typeof(ISchemaBindableMapper), typeof(QuantileRegressionScorerTransform), typeof(QuantileRegressionScorerTransform.Arguments), 40private static ISchemaBindableMapper Create(IHostEnvironment env, Arguments args, IPredictor predictor)
Scorers\RowToRowScorerBase.cs (3)
38private protected readonly ISchemaBindableMapper Bindable; 41private protected RowToRowScorerBase(IHostEnvironment env, IDataView input, string registrationName, ISchemaBindableMapper bindable) 52ctx.LoadModel<ISchemaBindableMapper, SignatureLoadModel>(host, out Bindable, "SchemaBindableMapper");
Scorers\SchemaBindablePredictorWrapper.cs (6)
32/// This is a base class for wrapping <see cref="IPredictor"/>s in an <see cref="ISchemaBindableMapper"/>. 120ISchemaBoundMapper ISchemaBindableMapper.Bind(IHostEnvironment env, RoleMappedSchema schema) 203public ISchemaBindableMapper Bindable => _parent; 385/// This is an <see cref="ISchemaBindableMapper"/> wrapper for calibrated binary classification predictors. 515public ISchemaBindableMapper Bindable => _parent; 620/// This is an <see cref="ISchemaBindableMapper"/> wrapper for quantile regression predictors. They need a separate
Transforms\TrainAndScoreTransformer.cs (2)
214internal static IDataTransform Create(IHostEnvironment env, Arguments args, IDataView input, IComponentFactory<IPredictor, ISchemaBindableMapper> mapperFactory) 226private static IDataTransform Create(IHostEnvironment env, Arguments args, ITrainer trainer, IDataView input, IComponentFactory<IPredictor, ISchemaBindableMapper> mapperFactory)
Utilities\ComponentCreation.cs (1)
171var bindable = ScoreUtils.GetSchemaBindableMapper(env, predictor, scorerFactorySettings: scorerFactorySettings);
Microsoft.ML.Ensemble (3)
PipelineEnsemble.cs (3)
41public ISchemaBindableMapper Bindable => Parent; 71var bindable = ScoreUtils.GetSchemaBindableMapper(Parent.Host, Parent.PredictorModels[i].Predictor); 565ISchemaBoundMapper ISchemaBindableMapper.Bind(IHostEnvironment env, RoleMappedSchema schema) => BindCore(env, schema);
Microsoft.ML.EntryPoints (2)
ScoreModel.cs (2)
82var bindable = ScoreUtils.GetSchemaBindableMapper(host, predictor); 132var bindable = ScoreUtils.GetSchemaBindableMapper(host, predictor);
Microsoft.ML.FastTree (10)
RandomForestRegression.cs (1)
260ISchemaBindableMapper IQuantileRegressionPredictor.CreateMapper(Double[] quantiles)
TreeEnsembleFeaturizer.cs (9)
22[assembly: LoadableClass(typeof(ISchemaBindableMapper), typeof(TreeEnsembleFeaturizerTransform), typeof(TreeEnsembleFeaturizerBindableMapper.Arguments), 28[assembly: LoadableClass(typeof(ISchemaBindableMapper), typeof(TreeEnsembleFeaturizerTransform), null, typeof(SignatureLoadModel), 72public ISchemaBindableMapper Bindable => _owner; 522ISchemaBoundMapper ISchemaBindableMapper.Bind(IHostEnvironment env, RoleMappedSchema schema) 595private static ISchemaBindableMapper Create(IHostEnvironment env, 606private static ISchemaBindableMapper Create(IHostEnvironment env, ModelLoadContext ctx) 662ISchemaBindableMapper bindable = new TreeEnsembleFeaturizerBindableMapper(env, scorerArgs, predictor); 679var mapperFactory = ComponentFactoryUtils.CreateFromFunction<IPredictor, ISchemaBindableMapper>( 733ISchemaBindableMapper bindable = new TreeEnsembleFeaturizerBindableMapper(env, scorerArgs, predictor);
Microsoft.ML.Recommender (2)
MatrixFactorizationPredictor.cs (2)
313ISchemaBoundMapper ISchemaBindableMapper.Bind(IHostEnvironment env, RoleMappedSchema schema) 418public ISchemaBindableMapper Bindable => _parent;
Microsoft.ML.StandardTrainers (2)
FactorizationMachine\FieldAwareFactorizationMachineModelParameters.cs (1)
239ISchemaBoundMapper ISchemaBindableMapper.Bind(IHostEnvironment env, RoleMappedSchema schema)
FactorizationMachine\FieldAwareFactorizationMachineUtils.cs (1)
67public ISchemaBindableMapper Bindable => _pred;
Microsoft.ML.Tests (1)
TrainerEstimators\TreeEnsembleFeaturizerTest.cs (1)
54var boundMapper = (treeFeaturizer as ISchemaBindableMapper).Bind(Env, roleMappedSchema);