2 implementations of ISingleFeaturePredictionTransformer
Microsoft.ML.Data (2)
Prediction\CalibratorCatalog.cs (1)
165public abstract class CalibratorTransformer<TICalibrator> : RowToRowTransformerBase, ISingleFeaturePredictionTransformer<TICalibrator>, ISingleFeaturePredictionTransformer
Scorers\PredictionTransformer.cs (1)
207public abstract class SingleFeaturePredictionTransformerBase<TModel> : PredictionTransformerBase<TModel>, ISingleFeaturePredictionTransformer<TModel>, ISingleFeaturePredictionTransformer
94 references to ISingleFeaturePredictionTransformer
Microsoft.ML.AutoML (1)
TrainerExtensions\TrainerExtensionUtil.cs (1)
83where TTransformer : ISingleFeaturePredictionTransformer<TModel>
Microsoft.ML.Data (37)
Prediction\CalibratorCatalog.cs (4)
161/// The <see cref="CalibratorTransformer{TICalibrator}"/> is an instance of <see cref="ISingleFeaturePredictionTransformer{TModel}"/> 203string ISingleFeaturePredictionTransformer<TICalibrator>.FeatureColumnName => DefaultColumnNames.Score; 204string ISingleFeaturePredictionTransformer.FeatureColumnName => ((ISingleFeaturePredictionTransformer<TICalibrator>)this).FeatureColumnName; 206DataViewType ISingleFeaturePredictionTransformer<TICalibrator>.FeatureColumnType => NumberDataViewType.Single;
Prediction\IPredictionTransformer.cs (1)
13/// <see cref="ISingleFeaturePredictionTransformer{TModel}"/>, which most of the ML.Net tranformer implement.
Scorers\PredictionTransformer.cs (19)
14[assembly: LoadableClass(typeof(ISingleFeaturePredictionTransformer<object>), typeof(BinaryPredictionTransformer), null, typeof(SignatureLoadModel), 17[assembly: LoadableClass(typeof(ISingleFeaturePredictionTransformer<object>), typeof(MulticlassPredictionTransformer), null, typeof(SignatureLoadModel), 20[assembly: LoadableClass(typeof(ISingleFeaturePredictionTransformer<object>), typeof(RegressionPredictionTransformer), null, typeof(SignatureLoadModel), 23[assembly: LoadableClass(typeof(ISingleFeaturePredictionTransformer<object>), typeof(RankingPredictionTransformer), null, typeof(SignatureLoadModel), 203/// The base class for all the transformers implementing the <see cref="ISingleFeaturePredictionTransformer{TModel}"/>. 312/// Base class for the <see cref="ISingleFeaturePredictionTransformer{TModel}"/> working on anomaly detection tasks. 381/// Base class for the <see cref="ISingleFeaturePredictionTransformer{TModel}"/> working on binary classification tasks. 473/// Base class for the <see cref="ISingleFeaturePredictionTransformer{TModel}"/> working on multi-class classification tasks. 566/// Base class for the <see cref="ISingleFeaturePredictionTransformer{TModel}"/> working on regression tasks. 614/// Base class for the <see cref="ISingleFeaturePredictionTransformer{TModel}"/> working on ranking tasks. 662/// Base class for the <see cref="ISingleFeaturePredictionTransformer{TModel}"/> working on clustering tasks. 719public static ISingleFeaturePredictionTransformer<object> Create(IHostEnvironment env, ModelLoadContext ctx) 727return (ISingleFeaturePredictionTransformer<object>)CreatePredictionTransformer.Create(env, ctx, host, model, predictionTransformerType); 736public static ISingleFeaturePredictionTransformer<object> Create(IHostEnvironment env, ModelLoadContext ctx) 744return (ISingleFeaturePredictionTransformer<object>)CreatePredictionTransformer.Create(env, ctx, host, model, predictionTransformerType); 753public static ISingleFeaturePredictionTransformer<object> Create(IHostEnvironment env, ModelLoadContext ctx) 761return (ISingleFeaturePredictionTransformer<object>)CreatePredictionTransformer.Create(env, ctx, host, model, predictionTransformerType); 771public static ISingleFeaturePredictionTransformer<object> Create(IHostEnvironment env, ModelLoadContext ctx) 779return (ISingleFeaturePredictionTransformer<object>)CreatePredictionTransformer.Create(env, ctx, host, model, predictionTransformerType);
Training\TrainerEstimatorBase.cs (2)
17where TTransformer : ISingleFeaturePredictionTransformer<TModel> 177where TTransformer : ISingleFeaturePredictionTransformer<TModel>
Training\TrainerUtils.cs (4)
405private readonly ITrainerEstimator<ISingleFeaturePredictionTransformer<TModel>, TModel> _trainer; 408public TrainerEstimatorToTrainerShim(IHostEnvironment env, ITrainerEstimator<ISingleFeaturePredictionTransformer<TModel>, TModel> trainer) 448var predictionTransformer = _trainer.Fit(data); 471where T : ITrainerEstimator<ISingleFeaturePredictionTransformer<TModel>, TModel>, ITrainer
Transforms\ExplainabilityCatalog.cs (4)
24/// <param name="predictionTransformer">A <see cref="ISingleFeaturePredictionTransformer{TModel}"/> that supports Feature Contribution Calculation, 39ISingleFeaturePredictionTransformer<ICalculateFeatureContribution> predictionTransformer, 50/// <param name="predictionTransformer">A <see cref="ISingleFeaturePredictionTransformer{TModel}"/> that supports Feature Contribution Calculation, 65ISingleFeaturePredictionTransformer<CalibratedModelParametersBase<TModelParameters, TCalibrator>> predictionTransformer,
Transforms\FeatureContributionCalculationTransformer.cs (3)
295/// <seealso cref="ExplainabilityCatalog.CalculateFeatureContribution(TransformsCatalog, ISingleFeaturePredictionTransformer{ICalculateFeatureContribution}, int, int, bool)"/> 296/// <seealso cref="ExplainabilityCatalog.CalculateFeatureContribution{TModelParameters, TCalibrator}(TransformsCatalog, ISingleFeaturePredictionTransformer{Calibrators.CalibratedModelParametersBase{TModelParameters, TCalibrator}}, int, int, bool)"/> 314/// <param name="model">A <see cref="ISingleFeaturePredictionTransformer{TModel}"/> that supports Feature Contribution Calculation,
Microsoft.ML.Ensemble (11)
OutputCombiners\BaseStacking.cs (2)
25internal abstract IComponentFactory<ITrainerEstimator<ISingleFeaturePredictionTransformer<IPredictorProducing<TOutput>>, IPredictorProducing<TOutput>>> GetPredictorFactory(); 28private protected readonly IComponentFactory<ITrainerEstimator<ISingleFeaturePredictionTransformer<IPredictorProducing<TOutput>>, IPredictorProducing<TOutput>>> BasePredictorType;
OutputCombiners\MultiStacking.cs (1)
22using TVectorTrainer = ITrainerEstimator<ISingleFeaturePredictionTransformer<IPredictorProducing<VBuffer<float>>>, IPredictorProducing<VBuffer<float>>>;
OutputCombiners\RegressionStacking.cs (1)
20using TScalarTrainer = ITrainerEstimator<ISingleFeaturePredictionTransformer<IPredictorProducing<float>>, IPredictorProducing<float>>;
OutputCombiners\Stacking.cs (1)
18using TScalarTrainer = ITrainerEstimator<ISingleFeaturePredictionTransformer<IPredictorProducing<float>>, IPredictorProducing<float>>;
Trainer\Binary\EnsembleTrainer.cs (1)
26using TScalarTrainer = ITrainerEstimator<ISingleFeaturePredictionTransformer<IPredictorProducing<float>>, IPredictorProducing<float>>;
Trainer\EnsembleTrainerBase.cs (3)
53internal abstract IComponentFactory<ITrainerEstimator<ISingleFeaturePredictionTransformer<IPredictorProducing<TOutput>>, IPredictorProducing<TOutput>>>[] GetPredictorFactories(); 64private protected readonly ITrainerEstimator<ISingleFeaturePredictionTransformer<IPredictorProducing<TOutput>>, IPredictorProducing<TOutput>>[] Trainers; 97Trainers = new ITrainerEstimator<ISingleFeaturePredictionTransformer<IPredictorProducing<TOutput>>, IPredictorProducing<TOutput>>[NumModels];
Trainer\Multiclass\MulticlassDataPartitionEnsembleTrainer.cs (1)
27using TVectorTrainer = ITrainerEstimator<ISingleFeaturePredictionTransformer<IPredictorProducing<VBuffer<float>>>, IPredictorProducing<VBuffer<float>>>;
Trainer\Regression\RegressionEnsembleTrainer.cs (1)
26using TScalarTrainer = ITrainerEstimator<ISingleFeaturePredictionTransformer<IPredictorProducing<float>>, IPredictorProducing<float>>;
Microsoft.ML.FastTree (4)
BoostingFastTree.cs (1)
12where TTransformer : ISingleFeaturePredictionTransformer<TModel>
FastTree.cs (1)
48where TTransformer : ISingleFeaturePredictionTransformer<TModel>
GamTrainer.cs (1)
28where TTransformer : ISingleFeaturePredictionTransformer<TPredictor>
RandomForest.cs (1)
12where TTransformer : ISingleFeaturePredictionTransformer<TModel>
Microsoft.ML.IntegrationTests (5)
ModelFiles.cs (5)
197Assert.IsAssignableFrom<ISingleFeaturePredictionTransformer<object>>(trans).Model).SubModel); 288Assert.IsAssignableFrom<ISingleFeaturePredictionTransformer<object>>(loadedModelWithLoader); 290Assert.IsAssignableFrom<ISingleFeaturePredictionTransformer<object>>(loadedModelWithoutLoader); 309var singleFeaturePredictionTransformer = loadedModelWithLoader as ISingleFeaturePredictionTransformer<object>;
Microsoft.ML.LightGbm (1)
LightGbmTrainerBase.cs (1)
45where TTransformer : ISingleFeaturePredictionTransformer<TModel>
Microsoft.ML.PerformanceTests (2)
Helpers\EnvironmentFactory.cs (2)
17where TTrainer : ITrainerEstimator<ISingleFeaturePredictionTransformer<TModel>, TModel> 33where TTrainer : ITrainerEstimator<ISingleFeaturePredictionTransformer<TModel>, TModel>
Microsoft.ML.StandardTrainers (25)
Standard\LogisticRegression\LbfgsPredictorBase.cs (1)
33where TTransformer : ISingleFeaturePredictionTransformer<TModel>
Standard\MulticlassClassification\MetaMulticlassTrainer.cs (2)
15using TScalarTrainer = ITrainerEstimator<ISingleFeaturePredictionTransformer<IPredictorProducing<float>>, IPredictorProducing<float>>; 18where TTransformer : ISingleFeaturePredictionTransformer<TModel>
Standard\MulticlassClassification\OneVersusAllTrainer.cs (5)
40using TScalarTrainer = ITrainerEstimator<ISingleFeaturePredictionTransformer<IPredictorProducing<float>>, IPredictorProducing<float>>; 86/// <seealso cref="StandardTrainersCatalog.OneVersusAll{TModel}(MulticlassClassificationCatalog.MulticlassClassificationTrainers, ITrainerEstimator{BinaryPredictionTransformer{TModel}, TModel}, string, bool, IEstimator{ISingleFeaturePredictionTransformer{ICalibrator}}, int, bool)" /> 163private ISingleFeaturePredictionTransformer<TScalarPredictor> TrainOne(IChannel ch, TScalarTrainer trainer, RoleMappedData data, int cls) 171var transformer = trainer.Fit(view); 229var transformer = TrainOne(ch, Trainer, td, i);
Standard\MulticlassClassification\PairwiseCouplingTrainer.cs (6)
28using TScalarTrainer = ITrainerEstimator<ISingleFeaturePredictionTransformer<IPredictorProducing<float>>, IPredictorProducing<float>>; 75/// <seealso cref="StandardTrainersCatalog.PairwiseCoupling{TModel}(MulticlassClassificationCatalog.MulticlassClassificationTrainers, ITrainerEstimator{ISingleFeaturePredictionTransformer{TModel}, TModel}, string, bool, IEstimator{ISingleFeaturePredictionTransformer{ICalibrator}}, int)" /> 145private ISingleFeaturePredictionTransformer<TDistPredictor> TrainOne(IChannel ch, TScalarTrainer trainer, RoleMappedData data, int cls1, int cls2) 152var transformer = trainer.Fit(view); 211var transformer = TrainOne(ch, Trainer, td, i, j);
Standard\Online\AveragedLinear.cs (1)
126where TTransformer : ISingleFeaturePredictionTransformer<TModel>
Standard\Online\OnlineLinear.cs (1)
75where TTransformer : ISingleFeaturePredictionTransformer<TModel>
Standard\SdcaBinary.cs (2)
49where TTransformer : ISingleFeaturePredictionTransformer<TModel> 145where TTransformer : ISingleFeaturePredictionTransformer<TModel>
Standard\StochasticTrainerBase.cs (1)
14where TTransformer : ISingleFeaturePredictionTransformer<TModel>
StandardTrainersCatalog.cs (6)
715private static ICalibratorTrainer GetCalibratorTrainerOrThrow(IExceptionContext ectx, IEstimator<ISingleFeaturePredictionTransformer<ICalibrator>> calibratorEstimator) 756IEstimator<ISingleFeaturePredictionTransformer<ICalibrator>> calibrator = null, 763if (!(binaryEstimator is ITrainerEstimator<ISingleFeaturePredictionTransformer<IPredictorProducing<float>>, IPredictorProducing<float>> est)) 793ITrainerEstimator<ISingleFeaturePredictionTransformer<TModel>, TModel> binaryEstimator, 796IEstimator<ISingleFeaturePredictionTransformer<ICalibrator>> calibrator = null, 802if (!(binaryEstimator is ITrainerEstimator<ISingleFeaturePredictionTransformer<IPredictorProducing<float>>, IPredictorProducing<float>> est))
Microsoft.ML.Tests (4)
FeatureContributionTests.cs (4)
192ITrainerEstimator<ISingleFeaturePredictionTransformer<ICalculateFeatureContribution>, ICalculateFeatureContribution> trainer, 198var model = trainer.Fit(data); 214ITrainerEstimator<ISingleFeaturePredictionTransformer<CalibratedModelParametersBase<TModelParameters, TCalibrator>>, CalibratedModelParametersBase<TModelParameters, TCalibrator>> trainer, 222var model = trainer.Fit(data);
Microsoft.ML.Transforms (4)
PermutationFeatureImportanceExtensions.cs (4)
67ISingleFeaturePredictionTransformer<TModel> predictionTransformer, 217ISingleFeaturePredictionTransformer<TModel> predictionTransformer, 371ISingleFeaturePredictionTransformer<TModel> predictionTransformer, 531ISingleFeaturePredictionTransformer<TModel> predictionTransformer,