1 interface inheriting from IValueMapper
Microsoft.ML.Core (1)
Data\IValueMapper.cs (1)
48internal interface IValueMapperDist : IValueMapper
13 implementations of IValueMapper
Microsoft.ML.Ensemble (2)
Trainer\EnsembleModelParameters.cs (1)
23internal sealed class EnsembleModelParameters : EnsembleModelParametersBase<Single>, IValueMapper
Trainer\Multiclass\EnsembleMulticlassModelParameters.cs (1)
17internal sealed class EnsembleMulticlassModelParameters : EnsembleModelParametersBase<VBuffer<Single>>, IValueMapper
Microsoft.ML.FastTree (2)
FastTree.cs (1)
2774IValueMapper,
GamModelParameters.cs (1)
29public abstract class GamModelParametersBase : ModelParametersBase<float>, IValueMapper, ICalculateFeatureContribution,
Microsoft.ML.KMeansClustering (1)
KMeansModelParameters.cs (1)
30IValueMapper,
Microsoft.ML.PCA (1)
PcaTrainer.cs (1)
415IValueMapper,
Microsoft.ML.StandardTrainers (6)
LdSvm\LdSvmModelParameters.cs (1)
19IValueMapper,
Standard\LinearModelParameters.cs (1)
44IValueMapper,
Standard\LogisticRegression\MulticlassLogisticRegression.cs (1)
417IValueMapper,
Standard\MulticlassClassification\MulticlassNaiveBayesTrainer.cs (1)
226IValueMapper,
Standard\MulticlassClassification\OneVersusAllTrainer.cs (1)
246IValueMapper,
Standard\MulticlassClassification\PairwiseCouplingTrainer.cs (1)
229IValueMapper
Microsoft.ML.Vision (1)
ImageClassificationTrainer.cs (1)
1333public sealed class ImageClassificationModelParameters : ModelParametersBase<VBuffer<float>>, IValueMapper, IDisposable
97 references to IValueMapper
Microsoft.ML.Data (12)
Model\Onnx\ICanSaveOnnx.cs (1)
71/// For simple mappers. Intended to be used for <see cref="IValueMapper"/> and
Model\Pfa\ICanSavePfa.cs (1)
75/// For simple mappers. Intended to be used for <see cref="IValueMapper"/> and
Prediction\Calibrator.cs (7)
295private readonly IValueMapper _mapper; 298DataViewType IValueMapper.InputType => _mapper.InputType; 299DataViewType IValueMapper.OutputType => _mapper.OutputType; 312_mapper = SubModel as IValueMapper; 319ValueMapper<TIn, TOut> IValueMapper.GetMapper<TIn, TOut>() 328var map = ((IValueMapper)this).GetMapper<TIn, float>(); 1047if (predictor is IValueMapper)
Scorers\SchemaBindablePredictorWrapper.cs (3)
44private protected readonly IValueMapper ValueMapper; 59private static DataViewType GetScoreType(IPredictor predictor, out IValueMapper valueMapper) 63valueMapper = predictor as IValueMapper;
Microsoft.ML.Ensemble (32)
OutputCombiners\BaseStacking.cs (7)
96var mapper = (IValueMapper)Meta; 115var ivm = Meta as IValueMapper; 138Contracts.Assert(models[i].Predictor is IValueMapper); 139var m = (IValueMapper)models[i].Predictor;
PipelineEnsemble.cs (2)
627if (!(pred is IValueMapper vm)) 636vm = pred as IValueMapper;
Selector\SubModelSelector\BaseDiverseSelector.cs (2)
42var vm = model.Predictor as IValueMapper;
Trainer\EnsembleDistributionModelParameters.cs (3)
49DataViewType IValueMapper.InputType => _inputType; 50DataViewType IValueMapper.OutputType => NumberDataViewType.Single; 140ValueMapper<TIn, TOut> IValueMapper.GetMapper<TIn, TOut>()
Trainer\EnsembleModelParameters.cs (9)
42private readonly IValueMapper[] _mappers; 45DataViewType IValueMapper.InputType => _inputType; 46DataViewType IValueMapper.OutputType => NumberDataViewType.Single; 72private VectorDataViewType InitializeMappers(out IValueMapper[] mappers) 76mappers = new IValueMapper[Models.Length]; 80var vm = Models[i].Predictor as IValueMapper; 96private bool IsValid(IValueMapper mapper, out VectorDataViewType inputType) 130ValueMapper<TIn, TOut> IValueMapper.GetMapper<TIn, TOut>()
Trainer\Multiclass\EnsembleMulticlassModelParameters.cs (9)
38private readonly IValueMapper[] _mappers; 40DataViewType IValueMapper.InputType => _inputType; 41DataViewType IValueMapper.OutputType => _outputType; 63private void InitializeMappers(out IValueMapper[] mappers, out VectorDataViewType inputType, out VectorDataViewType outputType) 67mappers = new IValueMapper[Models.Length]; 72var vm = Models[i].Predictor as IValueMapper; 110ValueMapper<TIn, TOut> IValueMapper.GetMapper<TIn, TOut>() 155private bool IsValid(IValueMapper mapper, out VectorDataViewType inputType, out VectorDataViewType outputType)
Microsoft.ML.FastTree (10)
FastTree.cs (3)
2811DataViewType IValueMapper.InputType => InputType; 2815DataViewType IValueMapper.OutputType => OutputType; 2911ValueMapper<TIn, TOut> IValueMapper.GetMapper<TIn, TOut>()
GamModelParameters.cs (3)
53DataViewType IValueMapper.InputType => _inputType; 54DataViewType IValueMapper.OutputType => _outputType; 193ValueMapper<TIn, TOut> IValueMapper.GetMapper<TIn, TOut>()
TreeEnsembleFeaturizer.cs (4)
653var vm = predictor as IValueMapper; 724var vm = predictor as IValueMapper;
Microsoft.ML.KMeansClustering (3)
KMeansModelParameters.cs (3)
55DataViewType IValueMapper.InputType => _inputType; 56DataViewType IValueMapper.OutputType => _outputType; 147ValueMapper<TIn, TOut> IValueMapper.GetMapper<TIn, TOut>()
Microsoft.ML.Mkl.Components (1)
OlsLinearRegression.cs (1)
459IValueMapper lrPredictor = new LinearRegressionModelParameters(Host, in weights, bias);
Microsoft.ML.PCA (3)
PcaTrainer.cs (3)
607DataViewType IValueMapper.InputType 612DataViewType IValueMapper.OutputType 617ValueMapper<TIn, TOut> IValueMapper.GetMapper<TIn, TOut>()
Microsoft.ML.StandardTrainers (33)
LdSvm\LdSvmModelParameters.cs (1)
268ValueMapper<TIn, TOut> IValueMapper.GetMapper<TIn, TOut>()
Standard\LinearModelParameters.cs (3)
299DataViewType IValueMapper.InputType 304DataViewType IValueMapper.OutputType 309ValueMapper<TIn, TOut> IValueMapper.GetMapper<TIn, TOut>()
Standard\LogisticRegression\MulticlassLogisticRegression.cs (3)
450DataViewType IValueMapper.InputType => InputType; 451DataViewType IValueMapper.OutputType => OutputType; 767ValueMapper<TSrc, TDst> IValueMapper.GetMapper<TSrc, TDst>()
Standard\MulticlassClassification\MulticlassNaiveBayesTrainer.cs (3)
254DataViewType IValueMapper.InputType => _inputType; 256DataViewType IValueMapper.OutputType => _outputType; 410ValueMapper<TIn, TOut> IValueMapper.GetMapper<TIn, TOut>()
Standard\MulticlassClassification\OneVersusAllTrainer.cs (14)
439DataViewType IValueMapper.InputType 444DataViewType IValueMapper.OutputType 448ValueMapper<TIn, TOut> IValueMapper.GetMapper<TIn, TOut>() 504public abstract IValueMapper[] Predictors { get; } 513protected bool IsValid(IValueMapper mapper, ref VectorDataViewType inputType) 600public override IValueMapper[] Predictors { get; } 607Predictors = new IValueMapper[predictors.Length]; 611var vm = predictors[i] as IValueMapper; 684public override IValueMapper[] Predictors => _mappers; 849public override IValueMapper[] Predictors { get; } 856Predictors = new IValueMapper[predictors.Length]; 860var vm = predictors[i] as IValueMapper;
Standard\MulticlassClassification\PairwiseCouplingTrainer.cs (3)
259DataViewType IValueMapper.InputType => _inputType; 260DataViewType IValueMapper.OutputType => _outputType; 458ValueMapper<TIn, TOut> IValueMapper.GetMapper<TIn, TOut>()
Standard\Simple\SimpleTrainers.cs (6)
64DataViewType IValueMapper.InputType => _inputType; 65DataViewType IValueMapper.OutputType => NumberDataViewType.Single; 124ValueMapper<TIn, TOut> IValueMapper.GetMapper<TIn, TOut>() 441DataViewType IValueMapper.InputType => _inputType; 442DataViewType IValueMapper.OutputType => NumberDataViewType.Single; 445ValueMapper<TIn, TOut> IValueMapper.GetMapper<TIn, TOut>()
Microsoft.ML.Vision (3)
ImageClassificationTrainer.cs (3)
1382DataViewType IValueMapper.InputType => _inputType; 1384DataViewType IValueMapper.OutputType => _outputType; 1473ValueMapper<TSrc, TDst> IValueMapper.GetMapper<TSrc, TDst>()