2 implementations of ISingleFeaturePredictionTransformer
Microsoft.ML.Data (2)
Prediction\CalibratorCatalog.cs (1)
165
public abstract class CalibratorTransformer<TICalibrator> : RowToRowTransformerBase,
ISingleFeaturePredictionTransformer
<TICalibrator>, ISingleFeaturePredictionTransformer
Scorers\PredictionTransformer.cs (1)
207
public abstract class SingleFeaturePredictionTransformerBase<TModel> : PredictionTransformerBase<TModel>,
ISingleFeaturePredictionTransformer
<TModel>, ISingleFeaturePredictionTransformer
94 references to ISingleFeaturePredictionTransformer
Microsoft.ML.AutoML (1)
TrainerExtensions\TrainerExtensionUtil.cs (1)
83
where 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}"/>
203
string
ISingleFeaturePredictionTransformer
<TICalibrator>.FeatureColumnName => DefaultColumnNames.Score;
204
string ISingleFeaturePredictionTransformer.FeatureColumnName => ((
ISingleFeaturePredictionTransformer
<TICalibrator>)this).FeatureColumnName;
206
DataViewType
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.
719
public static
ISingleFeaturePredictionTransformer
<object> Create(IHostEnvironment env, ModelLoadContext ctx)
727
return (
ISingleFeaturePredictionTransformer
<object>)CreatePredictionTransformer.Create(env, ctx, host, model, predictionTransformerType);
736
public static
ISingleFeaturePredictionTransformer
<object> Create(IHostEnvironment env, ModelLoadContext ctx)
744
return (
ISingleFeaturePredictionTransformer
<object>)CreatePredictionTransformer.Create(env, ctx, host, model, predictionTransformerType);
753
public static
ISingleFeaturePredictionTransformer
<object> Create(IHostEnvironment env, ModelLoadContext ctx)
761
return (
ISingleFeaturePredictionTransformer
<object>)CreatePredictionTransformer.Create(env, ctx, host, model, predictionTransformerType);
771
public static
ISingleFeaturePredictionTransformer
<object> Create(IHostEnvironment env, ModelLoadContext ctx)
779
return (
ISingleFeaturePredictionTransformer
<object>)CreatePredictionTransformer.Create(env, ctx, host, model, predictionTransformerType);
Training\TrainerEstimatorBase.cs (2)
17
where TTransformer :
ISingleFeaturePredictionTransformer
<TModel>
177
where TTransformer :
ISingleFeaturePredictionTransformer
<TModel>
Training\TrainerUtils.cs (4)
405
private readonly ITrainerEstimator<
ISingleFeaturePredictionTransformer
<TModel>, TModel> _trainer;
408
public TrainerEstimatorToTrainerShim(IHostEnvironment env, ITrainerEstimator<
ISingleFeaturePredictionTransformer
<TModel>, TModel> trainer)
448
var
predictionTransformer = _trainer.Fit(data);
471
where T : ITrainerEstimator<
ISingleFeaturePredictionTransformer
<TModel>, TModel>, ITrainer
Transforms\ExplainabilityCatalog.cs (4)
24
/// <param name="predictionTransformer">A <see cref="
ISingleFeaturePredictionTransformer
{TModel}"/> that supports Feature Contribution Calculation,
39
ISingleFeaturePredictionTransformer
<ICalculateFeatureContribution> predictionTransformer,
50
/// <param name="predictionTransformer">A <see cref="
ISingleFeaturePredictionTransformer
{TModel}"/> that supports Feature Contribution Calculation,
65
ISingleFeaturePredictionTransformer
<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)
25
internal abstract IComponentFactory<ITrainerEstimator<
ISingleFeaturePredictionTransformer
<IPredictorProducing<TOutput>>, IPredictorProducing<TOutput>>> GetPredictorFactory();
28
private protected readonly IComponentFactory<ITrainerEstimator<
ISingleFeaturePredictionTransformer
<IPredictorProducing<TOutput>>, IPredictorProducing<TOutput>>> BasePredictorType;
OutputCombiners\MultiStacking.cs (1)
22
using TVectorTrainer = ITrainerEstimator<
ISingleFeaturePredictionTransformer
<IPredictorProducing<VBuffer<float>>>, IPredictorProducing<VBuffer<float>>>;
OutputCombiners\RegressionStacking.cs (1)
20
using TScalarTrainer = ITrainerEstimator<
ISingleFeaturePredictionTransformer
<IPredictorProducing<float>>, IPredictorProducing<float>>;
OutputCombiners\Stacking.cs (1)
18
using TScalarTrainer = ITrainerEstimator<
ISingleFeaturePredictionTransformer
<IPredictorProducing<float>>, IPredictorProducing<float>>;
Trainer\Binary\EnsembleTrainer.cs (1)
26
using TScalarTrainer = ITrainerEstimator<
ISingleFeaturePredictionTransformer
<IPredictorProducing<float>>, IPredictorProducing<float>>;
Trainer\EnsembleTrainerBase.cs (3)
53
internal abstract IComponentFactory<ITrainerEstimator<
ISingleFeaturePredictionTransformer
<IPredictorProducing<TOutput>>, IPredictorProducing<TOutput>>>[] GetPredictorFactories();
64
private protected readonly ITrainerEstimator<
ISingleFeaturePredictionTransformer
<IPredictorProducing<TOutput>>, IPredictorProducing<TOutput>>[] Trainers;
97
Trainers = new ITrainerEstimator<
ISingleFeaturePredictionTransformer
<IPredictorProducing<TOutput>>, IPredictorProducing<TOutput>>[NumModels];
Trainer\Multiclass\MulticlassDataPartitionEnsembleTrainer.cs (1)
27
using TVectorTrainer = ITrainerEstimator<
ISingleFeaturePredictionTransformer
<IPredictorProducing<VBuffer<float>>>, IPredictorProducing<VBuffer<float>>>;
Trainer\Regression\RegressionEnsembleTrainer.cs (1)
26
using TScalarTrainer = ITrainerEstimator<
ISingleFeaturePredictionTransformer
<IPredictorProducing<float>>, IPredictorProducing<float>>;
Microsoft.ML.FastTree (4)
BoostingFastTree.cs (1)
12
where TTransformer :
ISingleFeaturePredictionTransformer
<TModel>
FastTree.cs (1)
48
where TTransformer :
ISingleFeaturePredictionTransformer
<TModel>
GamTrainer.cs (1)
28
where TTransformer :
ISingleFeaturePredictionTransformer
<TPredictor>
RandomForest.cs (1)
12
where TTransformer :
ISingleFeaturePredictionTransformer
<TModel>
Microsoft.ML.IntegrationTests (5)
ModelFiles.cs (5)
197
Assert.IsAssignableFrom<
ISingleFeaturePredictionTransformer
<object>>(trans).Model).SubModel);
288
Assert.IsAssignableFrom<
ISingleFeaturePredictionTransformer
<object>>(loadedModelWithLoader);
290
Assert.IsAssignableFrom<
ISingleFeaturePredictionTransformer
<object>>(loadedModelWithoutLoader);
309
var
singleFeaturePredictionTransformer = loadedModelWithLoader as
ISingleFeaturePredictionTransformer
<object>;
Microsoft.ML.LightGbm (1)
LightGbmTrainerBase.cs (1)
45
where TTransformer :
ISingleFeaturePredictionTransformer
<TModel>
Microsoft.ML.PerformanceTests (2)
Helpers\EnvironmentFactory.cs (2)
17
where TTrainer : ITrainerEstimator<
ISingleFeaturePredictionTransformer
<TModel>, TModel>
33
where TTrainer : ITrainerEstimator<
ISingleFeaturePredictionTransformer
<TModel>, TModel>
Microsoft.ML.StandardTrainers (25)
Standard\LogisticRegression\LbfgsPredictorBase.cs (1)
33
where TTransformer :
ISingleFeaturePredictionTransformer
<TModel>
Standard\MulticlassClassification\MetaMulticlassTrainer.cs (2)
15
using TScalarTrainer = ITrainerEstimator<
ISingleFeaturePredictionTransformer
<IPredictorProducing<float>>, IPredictorProducing<float>>;
18
where TTransformer :
ISingleFeaturePredictionTransformer
<TModel>
Standard\MulticlassClassification\OneVersusAllTrainer.cs (5)
40
using 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)" />
163
private
ISingleFeaturePredictionTransformer
<TScalarPredictor> TrainOne(IChannel ch, TScalarTrainer trainer, RoleMappedData data, int cls)
171
var
transformer = trainer.Fit(view);
229
var
transformer = TrainOne(ch, Trainer, td, i);
Standard\MulticlassClassification\PairwiseCouplingTrainer.cs (6)
28
using 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)" />
145
private
ISingleFeaturePredictionTransformer
<TDistPredictor> TrainOne(IChannel ch, TScalarTrainer trainer, RoleMappedData data, int cls1, int cls2)
152
var
transformer = trainer.Fit(view);
211
var
transformer = TrainOne(ch, Trainer, td, i, j);
Standard\Online\AveragedLinear.cs (1)
126
where TTransformer :
ISingleFeaturePredictionTransformer
<TModel>
Standard\Online\OnlineLinear.cs (1)
75
where TTransformer :
ISingleFeaturePredictionTransformer
<TModel>
Standard\SdcaBinary.cs (2)
49
where TTransformer :
ISingleFeaturePredictionTransformer
<TModel>
145
where TTransformer :
ISingleFeaturePredictionTransformer
<TModel>
Standard\StochasticTrainerBase.cs (1)
14
where TTransformer :
ISingleFeaturePredictionTransformer
<TModel>
StandardTrainersCatalog.cs (6)
715
private static ICalibratorTrainer GetCalibratorTrainerOrThrow(IExceptionContext ectx, IEstimator<
ISingleFeaturePredictionTransformer
<ICalibrator>> calibratorEstimator)
756
IEstimator<
ISingleFeaturePredictionTransformer
<ICalibrator>> calibrator = null,
763
if (!(binaryEstimator is ITrainerEstimator<
ISingleFeaturePredictionTransformer
<IPredictorProducing<float>>, IPredictorProducing<float>> est))
793
ITrainerEstimator<
ISingleFeaturePredictionTransformer
<TModel>, TModel> binaryEstimator,
796
IEstimator<
ISingleFeaturePredictionTransformer
<ICalibrator>> calibrator = null,
802
if (!(binaryEstimator is ITrainerEstimator<
ISingleFeaturePredictionTransformer
<IPredictorProducing<float>>, IPredictorProducing<float>> est))
Microsoft.ML.Tests (4)
FeatureContributionTests.cs (4)
192
ITrainerEstimator<
ISingleFeaturePredictionTransformer
<ICalculateFeatureContribution>, ICalculateFeatureContribution> trainer,
198
var
model = trainer.Fit(data);
214
ITrainerEstimator<
ISingleFeaturePredictionTransformer
<CalibratedModelParametersBase<TModelParameters, TCalibrator>>, CalibratedModelParametersBase<TModelParameters, TCalibrator>> trainer,
222
var
model = trainer.Fit(data);
Microsoft.ML.Transforms (4)
PermutationFeatureImportanceExtensions.cs (4)
67
ISingleFeaturePredictionTransformer
<TModel> predictionTransformer,
217
ISingleFeaturePredictionTransformer
<TModel> predictionTransformer,
371
ISingleFeaturePredictionTransformer
<TModel> predictionTransformer,
531
ISingleFeaturePredictionTransformer
<TModel> predictionTransformer,