4 implementations of ITrainerEstimator
Microsoft.ML.Data (1)
Training\TrainerEstimatorBase.cs (1)
16
public abstract class TrainerEstimatorBase<TTransformer, TModel> :
ITrainerEstimator
<TTransformer, TModel>, ITrainer<IPredictor>
Microsoft.ML.Recommender (1)
MatrixFactorizationTrainer.cs (1)
114
ITrainerEstimator
<MatrixFactorizationPredictionTransformer, MatrixFactorizationModelParameters>
Microsoft.ML.StandardTrainers (2)
Standard\MulticlassClassification\MetaMulticlassTrainer.cs (1)
17
public abstract class MetaMulticlassTrainer<TTransformer, TModel> :
ITrainerEstimator
<TTransformer, TModel>, ITrainer<IPredictor>
Standard\Simple\SimpleTrainers.cs (1)
194
ITrainerEstimator
<BinaryPredictionTransformer<PriorModelParameters>, PriorModelParameters>
96 references to ITrainerEstimator
Microsoft.ML.AutoML (40)
Experiment\SuggestedPipeline.cs (1)
133
var
learner = Trainer.BuildTrainer(validationSet);
Experiment\SuggestedTrainer.cs (1)
44
public
ITrainerEstimator
<IPredictionTransformer<object>, object> BuildTrainer(IDataView validationSet = null)
TrainerExtensions\BinaryTrainerExtensions.cs (10)
15
using ITrainerEstimator =
ITrainerEstimator
<IPredictionTransformer<object>, object>;
26
public
ITrainerEstimator
CreateInstance(MLContext mlContext, IEnumerable<SweepableParam> sweepParams,
71
public
ITrainerEstimator
CreateInstance(MLContext mlContext, IEnumerable<SweepableParam> sweepParams,
93
public
ITrainerEstimator
CreateInstance(MLContext mlContext, IEnumerable<SweepableParam> sweepParams,
115
public
ITrainerEstimator
CreateInstance(MLContext mlContext, IEnumerable<SweepableParam> sweepParams,
136
public
ITrainerEstimator
CreateInstance(MLContext mlContext, IEnumerable<SweepableParam> sweepParams,
157
public
ITrainerEstimator
CreateInstance(MLContext mlContext, IEnumerable<SweepableParam> sweepParams,
178
public
ITrainerEstimator
CreateInstance(MLContext mlContext, IEnumerable<SweepableParam> sweepParams,
200
public
ITrainerEstimator
CreateInstance(MLContext mlContext, IEnumerable<SweepableParam> sweepParams,
222
public
ITrainerEstimator
CreateInstance(MLContext mlContext, IEnumerable<SweepableParam> sweepParams,
TrainerExtensions\ITrainerExtension.cs (2)
10
using ITrainerEstimator =
ITrainerEstimator
<IPredictionTransformer<object>, object>;
16
ITrainerEstimator
CreateInstance(MLContext mlContext,
TrainerExtensions\MultiTrainerExtensions.cs (12)
14
using ITrainerEstimator =
ITrainerEstimator
<IPredictionTransformer<object>, object>;
25
public
ITrainerEstimator
CreateInstance(MLContext mlContext, IEnumerable<SweepableParam> sweepParams,
47
public
ITrainerEstimator
CreateInstance(MLContext mlContext, IEnumerable<SweepableParam> sweepParams,
67
public
ITrainerEstimator
CreateInstance(MLContext mlContext, IEnumerable<SweepableParam> sweepParams,
90
public
ITrainerEstimator
CreateInstance(MLContext mlContext, IEnumerable<SweepableParam> sweepParams,
110
public
ITrainerEstimator
CreateInstance(MLContext mlContext, IEnumerable<SweepableParam> sweepParams,
133
public
ITrainerEstimator
CreateInstance(MLContext mlContext, IEnumerable<SweepableParam> sweepParams,
155
public
ITrainerEstimator
CreateInstance(MLContext mlContext, IEnumerable<SweepableParam> sweepParams,
177
public
ITrainerEstimator
CreateInstance(MLContext mlContext, IEnumerable<SweepableParam> sweepParams,
199
public
ITrainerEstimator
CreateInstance(MLContext mlContext, IEnumerable<SweepableParam> sweepParams,
219
public
ITrainerEstimator
CreateInstance(MLContext mlContext, IEnumerable<SweepableParam> sweepParams,
238
public
ITrainerEstimator
CreateInstance(MLContext mlContext, IEnumerable<SweepableParam> sweepParams,
TrainerExtensions\RankingTrainerExtensions.cs (3)
13
using ITrainerEstimator =
ITrainerEstimator
<IPredictionTransformer<object>, object>;
21
public
ITrainerEstimator
CreateInstance(MLContext mlContext, IEnumerable<SweepableParam> sweepParams,
44
public
ITrainerEstimator
CreateInstance(MLContext mlContext, IEnumerable<SweepableParam> sweepParams,
TrainerExtensions\RecommendationTrainerExtensions.cs (2)
10
using ITrainerEsitmator =
ITrainerEstimator
<IPredictionTransformer<object>, object>;
14
public
ITrainerEsitmator
CreateInstance(MLContext mlContext, IEnumerable<SweepableParam> sweepParams,
TrainerExtensions\RegressionTrainerExtensions.cs (9)
13
using ITrainerEstimator =
ITrainerEstimator
<IPredictionTransformer<object>, object>;
22
public
ITrainerEstimator
CreateInstance(MLContext mlContext, IEnumerable<SweepableParam> sweepParams,
44
public
ITrainerEstimator
CreateInstance(MLContext mlContext, IEnumerable<SweepableParam> sweepParams,
66
public
ITrainerEstimator
CreateInstance(MLContext mlContext, IEnumerable<SweepableParam> sweepParams,
88
public
ITrainerEstimator
CreateInstance(MLContext mlContext, IEnumerable<SweepableParam> sweepParams,
109
public
ITrainerEstimator
CreateInstance(MLContext mlContext, IEnumerable<SweepableParam> sweepParams,
130
public
ITrainerEstimator
CreateInstance(MLContext mlContext, IEnumerable<SweepableParam> sweepParams,
152
public
ITrainerEstimator
CreateInstance(MLContext mlContext, IEnumerable<SweepableParam> sweepParams,
174
public
ITrainerEstimator
CreateInstance(MLContext mlContext, IEnumerable<SweepableParam> sweepParams,
Microsoft.ML.AutoML.Tests (2)
TrainerExtensionsTests.cs (2)
43
var
instance = extension.CreateInstance(context, sweepParams, columnInfo);
57
var
instance = extension.CreateInstance(context, null, columnInfo);
Microsoft.ML.Data (5)
Training\TrainerUtils.cs (5)
392
/// This is a shim class to translate the more contemporaneous <see cref="
ITrainerEstimator
{TTransformer, TPredictor}"/>
405
private readonly
ITrainerEstimator
<ISingleFeaturePredictionTransformer<TModel>, TModel> _trainer;
408
public TrainerEstimatorToTrainerShim(IHostEnvironment env,
ITrainerEstimator
<ISingleFeaturePredictionTransformer<TModel>, TModel> trainer)
459
/// This is a shim for legacy code that takes the more modern <see cref="
ITrainerEstimator
{TTransformer, TPredictor}"/>
471
where T :
ITrainerEstimator
<ISingleFeaturePredictionTransformer<TModel>, TModel>, ITrainer
Microsoft.ML.Ensemble (24)
OutputCombiners\BaseStacking.cs (3)
25
internal abstract IComponentFactory<
ITrainerEstimator
<ISingleFeaturePredictionTransformer<IPredictorProducing<TOutput>>, IPredictorProducing<TOutput>>> GetPredictorFactory();
28
private protected readonly IComponentFactory<
ITrainerEstimator
<ISingleFeaturePredictionTransformer<IPredictorProducing<TOutput>>, IPredictorProducing<TOutput>>> BasePredictorType;
144
var
trainer = BasePredictorType.CreateComponent(host);
OutputCombiners\MultiStacking.cs (3)
22
using TVectorTrainer =
ITrainerEstimator
<ISingleFeaturePredictionTransformer<IPredictorProducing<VBuffer<float>>>, IPredictorProducing<VBuffer<float>>>;
48
public IComponentFactory<
TVectorTrainer
> BasePredictorType;
50
internal override IComponentFactory<
TVectorTrainer
> GetPredictorFactory() => BasePredictorType;
OutputCombiners\RegressionStacking.cs (3)
20
using TScalarTrainer =
ITrainerEstimator
<ISingleFeaturePredictionTransformer<IPredictorProducing<float>>, IPredictorProducing<float>>;
46
public IComponentFactory<
TScalarTrainer
> BasePredictorType;
48
internal override IComponentFactory<
TScalarTrainer
> GetPredictorFactory() => BasePredictorType;
OutputCombiners\Stacking.cs (3)
18
using TScalarTrainer =
ITrainerEstimator
<ISingleFeaturePredictionTransformer<IPredictorProducing<float>>, IPredictorProducing<float>>;
45
public IComponentFactory<
TScalarTrainer
> BasePredictorType;
47
internal override IComponentFactory<
TScalarTrainer
> GetPredictorFactory() => BasePredictorType;
Trainer\Binary\EnsembleTrainer.cs (3)
26
using TScalarTrainer =
ITrainerEstimator
<ISingleFeaturePredictionTransformer<IPredictorProducing<float>>, IPredictorProducing<float>>;
52
public IComponentFactory<
TScalarTrainer
>[] BasePredictors;
54
internal override IComponentFactory<
TScalarTrainer
>[] GetPredictorFactories() => BasePredictors;
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 (3)
27
using TVectorTrainer =
ITrainerEstimator
<ISingleFeaturePredictionTransformer<IPredictorProducing<VBuffer<float>>>, IPredictorProducing<VBuffer<float>>>;
53
internal IComponentFactory<
TVectorTrainer
>[] BasePredictors;
55
internal override IComponentFactory<
TVectorTrainer
>[] GetPredictorFactories() => BasePredictors;
Trainer\Regression\RegressionEnsembleTrainer.cs (3)
26
using TScalarTrainer =
ITrainerEstimator
<ISingleFeaturePredictionTransformer<IPredictorProducing<float>>, IPredictorProducing<float>>;
47
public IComponentFactory<
TScalarTrainer
>[] BasePredictors;
49
internal override IComponentFactory<
TScalarTrainer
>[] GetPredictorFactories() => BasePredictors;
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 (21)
Standard\MulticlassClassification\MetaMulticlassTrainer.cs (5)
15
using TScalarTrainer =
ITrainerEstimator
<ISingleFeaturePredictionTransformer<IPredictorProducing<float>>, IPredictorProducing<float>>;
25
internal IComponentFactory<
TScalarTrainer
> PredictorType;
45
private protected readonly
TScalarTrainer
Trainer;
64
TScalarTrainer
singleEstimator = null, ICalibratorTrainer calibrator = null)
84
private
TScalarTrainer
CreateTrainer()
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)" />
125
/// <param name="binaryEstimator">An instance of a binary <see cref="
ITrainerEstimator
{TTransformer, TPredictor}"/> used as the base trainer.</param>
132
TScalarTrainer
binaryEstimator,
163
private ISingleFeaturePredictionTransformer<TScalarPredictor> TrainOne(IChannel ch,
TScalarTrainer
trainer, RoleMappedData data, int cls)
Standard\MulticlassClassification\PairwiseCouplingTrainer.cs (5)
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)" />
104
/// <param name="binaryEstimator">An instance of a binary <see cref="
ITrainerEstimator
{TTransformer, TPredictor}"/> used as the base trainer.</param>
110
TScalarTrainer
binaryEstimator,
145
private ISingleFeaturePredictionTransformer<TDistPredictor> TrainOne(IChannel ch,
TScalarTrainer
trainer, RoleMappedData data, int cls1, int cls2)
StandardTrainersCatalog.cs (6)
739
/// <param name="binaryEstimator">An instance of a binary <see cref="
ITrainerEstimator
{TTransformer, TPredictor}"/> used as the base trainer.</param>
753
ITrainerEstimator
<BinaryPredictionTransformer<TModel>, TModel> binaryEstimator,
763
if (!(binaryEstimator is
ITrainerEstimator
<ISingleFeaturePredictionTransformer<IPredictorProducing<float>>, IPredictorProducing<float>> est))
780
/// <param name="binaryEstimator">An instance of a binary <see cref="
ITrainerEstimator
{TTransformer, TPredictor}"/> used as the base trainer.</param>
793
ITrainerEstimator
<ISingleFeaturePredictionTransformer<TModel>, TModel> binaryEstimator,
802
if (!(binaryEstimator is
ITrainerEstimator
<ISingleFeaturePredictionTransformer<IPredictorProducing<float>>, IPredictorProducing<float>> est))
Microsoft.ML.Tests (2)
FeatureContributionTests.cs (2)
192
ITrainerEstimator
<ISingleFeaturePredictionTransformer<ICalculateFeatureContribution>, ICalculateFeatureContribution> trainer,
214
ITrainerEstimator
<ISingleFeaturePredictionTransformer<CalibratedModelParametersBase<TModelParameters, TCalibrator>>, CalibratedModelParametersBase<TModelParameters, TCalibrator>> trainer,