1 write to Trainers
Microsoft.ML.Data (1)
TrainCatalog.cs (1)
578
Trainers
= new RegressionTrainers(this);
121 references to Trainers
Microsoft.ML.AutoML (17)
SweepableEstimator\Estimators\FastForest.cs (1)
41
return context.Regression.
Trainers
.FastForest(option);
SweepableEstimator\Estimators\FastTree.cs (2)
51
return context.Regression.
Trainers
.FastTree(option);
74
return context.Regression.
Trainers
.FastTreeTweedie(option);
SweepableEstimator\Estimators\Lbfgs.cs (1)
41
return context.Regression.
Trainers
.LbfgsPoissonRegression(option);
SweepableEstimator\Estimators\LightGbm.cs (1)
89
return context.Regression.
Trainers
.LightGbm(option);
SweepableEstimator\Estimators\Sdca.cs (1)
23
return context.Regression.
Trainers
.Sdca(option);
SweepableEstimator\Estimators\SentenceSimilarity.cs (1)
17
return context.Regression.
Trainers
.SentenceSimilarity(
Sweepers\SmacSweeper.cs (1)
129
var trainer = _context.Regression.
Trainers
.FastForest(new FastForestRegressionTrainer.Options()
TrainerExtensions\RegressionTrainerExtensions.cs (8)
27
return mlContext.Regression.
Trainers
.FastForest(options);
49
return mlContext.Regression.
Trainers
.FastTree(options);
71
return mlContext.Regression.
Trainers
.FastTreeTweedie(options);
92
return mlContext.Regression.
Trainers
.LightGbm(options);
113
return mlContext.Regression.
Trainers
.OnlineGradientDescent(options);
135
return mlContext.Regression.
Trainers
.Ols(options);
157
return mlContext.Regression.
Trainers
.LbfgsPoissonRegression(options);
178
return mlContext.Regression.
Trainers
.Sdca(options);
Tuner\SmacTuner.cs (1)
141
var trainer = _context.Regression.
Trainers
.FastForest(new FastForestRegressionTrainer.Options()
Microsoft.ML.IntegrationTests (23)
Debugging.cs (2)
109
.Append(mlContext.Regression.
Trainers
.Sdca(
176
.Append(mlContext.Regression.
Trainers
.Sdca(
Evaluation.cs (1)
271
.Append(mlContext.Regression.
Trainers
.FastForest(new FastForestRegressionTrainer.Options { NumberOfThreads = 1 }));
Explainability.cs (8)
39
.Append(mlContext.Regression.
Trainers
.FastTree());
97
.Append(mlContext.Regression.
Trainers
.Sdca());
121
.Append(mlContext.Regression.
Trainers
.FastTree());
148
.Append(mlContext.Regression.
Trainers
.FastForest());
175
.Append(mlContext.Regression.
Trainers
.Sdca());
212
.Append(mlContext.Regression.
Trainers
.FastTree());
249
.Append(mlContext.Regression.
Trainers
.FastForest());
287
.Append(mlContext.Regression.
Trainers
.Gam(numberOfIterations: 2));
IntrospectiveTraining.cs (3)
39
.Append(mlContext.Regression.
Trainers
.FastForest(
144
.Append(mlContext.Regression.
Trainers
.Gam(
293
.Append(mlContext.Regression.
Trainers
.FastForest(numberOfLeaves: 5, numberOfTrees: 3));
ModelFiles.cs (2)
49
.Append(mlContext.Regression.
Trainers
.FastTree(
96
.Append(mlContext.Regression.
Trainers
.FastTree(
ONNX.cs (2)
43
.Append(mlContext.Regression.
Trainers
.FastTree(
145
.Append(mlContext.Regression.
Trainers
.Sdca(
Training.cs (2)
321
var trainer = mlContext.Regression.
Trainers
.OnlineGradientDescent(
365
var trainer = mlContext.Regression.
Trainers
.LbfgsPoissonRegression(
Validation.cs (3)
42
.Append(mlContext.Regression.
Trainers
.Ols());
121
var trainedModel = mlContext.Regression.
Trainers
.FastTree(new FastTreeRegressionTrainer.Options
155
.Append(mlContext.Regression.
Trainers
.OnlineGradientDescent());
Microsoft.ML.Predictor.Tests (1)
TestIniModels.cs (1)
531
.Append(mlContext.Regression.
Trainers
.Gam());
Microsoft.ML.Samples (25)
Dynamic\Trainers\Regression\FastForest.cs (1)
30
var pipeline = mlContext.Regression.
Trainers
.FastForest(
Dynamic\Trainers\Regression\FastForestWithOptions.cs (1)
45
mlContext.Regression.
Trainers
.FastForest(options);
Dynamic\Trainers\Regression\FastTree.cs (1)
30
var pipeline = mlContext.Regression.
Trainers
.FastTree(
Dynamic\Trainers\Regression\FastTreeTweedie.cs (1)
30
var pipeline = mlContext.Regression.
Trainers
.FastTreeTweedie(
Dynamic\Trainers\Regression\FastTreeTweedieWithOptions.cs (1)
47
mlContext.Regression.
Trainers
.FastTreeTweedie(options);
Dynamic\Trainers\Regression\FastTreeWithOptions.cs (1)
48
mlContext.Regression.
Trainers
.FastTree(options);
Dynamic\Trainers\Regression\Gam.cs (1)
30
var pipeline = mlContext.Regression.
Trainers
.Gam(
Dynamic\Trainers\Regression\GamWithOptions.cs (1)
43
mlContext.Regression.
Trainers
.Gam(options);
Dynamic\Trainers\Regression\LbfgsPoissonRegression.cs (1)
27
var pipeline = mlContext.Regression.
Trainers
.
Dynamic\Trainers\Regression\LbfgsPoissonRegressionWithOptions.cs (1)
44
mlContext.Regression.
Trainers
.LbfgsPoissonRegression(options);
Dynamic\Trainers\Regression\LightGbm.cs (1)
30
var pipeline = mlContext.Regression.
Trainers
.
Dynamic\Trainers\Regression\LightGbmAdvanced.cs (1)
41
.Append(mlContext.Regression.
Trainers
.LightGbm(
Dynamic\Trainers\Regression\LightGbmWithOptions.cs (1)
52
mlContext.Regression.
Trainers
.LightGbm(options);
Dynamic\Trainers\Regression\LightGbmWithOptionsAdvanced.cs (1)
42
.Append(mlContext.Regression.
Trainers
.LightGbm(
Dynamic\Trainers\Regression\OnlineGradientDescent.cs (1)
27
var pipeline = mlContext.Regression.
Trainers
.OnlineGradientDescent(
Dynamic\Trainers\Regression\OnlineGradientDescentWithOptions.cs (1)
44
mlContext.Regression.
Trainers
.OnlineGradientDescent(options);
Dynamic\Trainers\Regression\OrdinaryLeastSquares.cs (1)
27
var pipeline = mlContext.Regression.
Trainers
.Ols(
Dynamic\Trainers\Regression\OrdinaryLeastSquaresAdvanced.cs (1)
53
var pipeline = mlContext.Regression.
Trainers
.Ols();
Dynamic\Trainers\Regression\OrdinaryLeastSquaresWithOptions.cs (1)
41
mlContext.Regression.
Trainers
.Ols(options);
Dynamic\Trainers\Regression\OrdinaryLeastSquaresWithOptionsAdvanced.cs (1)
53
var pipeline = mlContext.Regression.
Trainers
.Ols(
Dynamic\Trainers\Regression\PermutationFeatureImportance.cs (1)
32
.Append(mlContext.Regression.
Trainers
.Ols());
Dynamic\Trainers\Regression\PermutationFeatureImportanceLoadFromDisk.cs (1)
34
.Append(mlContext.Regression.
Trainers
.Ols());
Dynamic\Trainers\Regression\Sdca.cs (1)
27
var pipeline = mlContext.Regression.
Trainers
.Sdca(
Dynamic\Trainers\Regression\SdcaWithOptions.cs (1)
45
mlContext.Regression.
Trainers
.Sdca(options);
Dynamic\Transforms\CalculateFeatureContribution.cs (1)
36
var linearTrainer = mlContext.Regression.
Trainers
.Ols();
Microsoft.ML.Samples.OneDal (2)
Program.cs (2)
111
var trainer = mlContext.Regression.
Trainers
.FastForest(options);
139
var trainer = mlContext.Regression.
Trainers
.Ols(options);
Microsoft.ML.Tests (51)
FeatureContributionTests.cs (11)
31
var model = ML.Regression.
Trainers
.Ols().Fit(data);
47
TestFeatureContribution(ML.Regression.
Trainers
.Ols(), GetSparseDataset(numberOfInstances: 100), "LeastSquaresRegression");
53
TestFeatureContribution(ML.Regression.
Trainers
.LightGbm(), GetSparseDataset(numberOfInstances: 100), "LightGbmRegression");
59
TestFeatureContribution(ML.Regression.
Trainers
.LightGbm(new LightGbmRegressionTrainer.Options() { UseCategoricalSplit = true }), GetOneHotEncodedData(numberOfInstances: 100), "LightGbmRegressionWithCategoricalSplit");
65
TestFeatureContribution(ML.Regression.
Trainers
.FastTree(), GetSparseDataset(numberOfInstances: 100), "FastTreeRegression");
71
TestFeatureContribution(ML.Regression.
Trainers
.FastForest(), GetSparseDataset(numberOfInstances: 100), "FastForestRegression");
77
TestFeatureContribution(ML.Regression.
Trainers
.FastTreeTweedie(), GetSparseDataset(numberOfInstances: 100), "FastTreeTweedieRegression");
83
TestFeatureContribution(ML.Regression.
Trainers
.Sdca(
90
TestFeatureContribution(ML.Regression.
Trainers
.OnlineGradientDescent(), GetSparseDataset(numberOfInstances: 100), "OnlineGradientDescentRegression");
96
TestFeatureContribution(ML.Regression.
Trainers
.LbfgsPoissonRegression(
103
TestFeatureContribution(ML.Regression.
Trainers
.Gam(), GetSparseDataset(numberOfInstances: 100), "GAMRegression");
OnnxConversionTest.cs (10)
79
.Append(mlContext.Regression.
Trainers
.Sdca(new SdcaRegressionTrainer.Options()
189
mlContext.Regression.
Trainers
.OnlineGradientDescent("Target","FeatureVector"),
190
mlContext.Regression.
Trainers
.FastForest("Target", "FeatureVector"),
191
mlContext.Regression.
Trainers
.FastTree("Target", "FeatureVector"),
192
mlContext.Regression.
Trainers
.FastTreeTweedie("Target", "FeatureVector"),
193
mlContext.Regression.
Trainers
.LbfgsPoissonRegression("Target", "FeatureVector"),
197
estimators.Add(mlContext.Regression.
Trainers
.Ols("Target", "FeatureVector"));
201
estimators.Add(mlContext.Regression.
Trainers
.LightGbm("Target", "FeatureVector"));
575
.Append(mlContext.Regression.
Trainers
.Sdca(new SdcaRegressionTrainer.Options()
606
.Append(mlContext.Regression.
Trainers
.LightGbm(labelColumnName: "Target", featureColumnName: "FeatureVector", numberOfIterations: 3, numberOfLeaves: 16, minimumExampleCountPerLeaf: 100));
PermutationFeatureImportanceTests.cs (4)
38
var model = ML.Regression.
Trainers
.OnlineGradientDescent().Fit(data);
106
var model = ML.Transforms.CopyColumns("Label", "Label").Append(ML.Regression.
Trainers
.OnlineGradientDescent()).Fit(data);
180
var model = ML.Regression.
Trainers
.OnlineGradientDescent().Fit(data);
268
var model = ML.Regression.
Trainers
.OnlineGradientDescent().Fit(data);
Scenarios\Api\CookbookSamples\CookbookSamplesDynamicApi.cs (5)
181
.Append(mlContext.Regression.
Trainers
.Sdca(labelColumnName: "Target", featureColumnName: "FeatureVector"));
353
.Append(context.Regression.
Trainers
.FastTree());
393
.Append(context.Regression.
Trainers
.Sdca());
428
.Append(context.Regression.
Trainers
.FastTree());
464
.Append(context.Regression.
Trainers
.FastTree(labelColumnName: "MedianHomeValue"));
Scenarios\RegressionTest.cs (1)
37
var trainer = context.Regression.
Trainers
.Sdca(labelColumnName: "Label", featureColumnName: "Features");
TrainerEstimators\LbfgsTests.cs (1)
50
var trainer = ML.Regression.
Trainers
.LbfgsPoissonRegression();
TrainerEstimators\OlsLinearRegressionTests.cs (2)
18
var trainer = ML.Regression.
Trainers
.Ols(new OlsTrainer.Options());
26
trainer = ML.Regression.
Trainers
.Ols(new OlsTrainer.Options() { CalculateStatistics = false });
TrainerEstimators\OnlineLinearTests.cs (1)
29
var ogdTrainer = ML.Regression.
Trainers
.OnlineGradientDescent();
TrainerEstimators\SdcaTests.cs (1)
39
var regressionTrainer = ML.Regression.
Trainers
.Sdca(
TrainerEstimators\TreeEnsembleFeaturizerTest.cs (7)
456
.Append(ML.Regression.
Trainers
.Sdca("Label", "CombinedFeatures"));
494
.Append(ML.Regression.
Trainers
.Sdca("Label", "CombinedFeatures"));
532
.Append(ML.Regression.
Trainers
.Sdca("Label", "CombinedFeatures"));
570
.Append(ML.Regression.
Trainers
.Sdca("Label", "CombinedFeatures"));
608
.Append(ML.Regression.
Trainers
.Sdca("Label", "CombinedFeatures"));
665
.Append(ML.Regression.
Trainers
.Sdca("Label", "CombinedFeatures"));
697
.Append(ML.Regression.
Trainers
.Sdca("Label", "CombinedFeatures"));
TrainerEstimators\TreeEstimators.cs (8)
216
var trainer = ML.Regression.
Trainers
.FastTree(
234
var trainer = ML.Regression.
Trainers
.LightGbm(new LightGbmRegressionTrainer.Options
271
var trainer = ML.Regression.
Trainers
.FastTreeTweedie(
290
var trainer = ML.Regression.
Trainers
.FastForest(
909
var trainer = ML.Regression.
Trainers
.FastTree(
927
var trainer = ML.Regression.
Trainers
.FastForest(
945
var trainer = ML.Regression.
Trainers
.FastTreeTweedie(
966
var trainer = ML.Regression.
Trainers
.LightGbm(
Microsoft.ML.TorchSharp.Tests (2)
TextClassificationTests.cs (2)
387
var estimator = ML.Regression.
Trainers
.SentenceSimilarity(sentence1ColumnName: "Sentence", sentence2ColumnName: "Sentence2");
442
var estimator = ML.Regression.
Trainers
.SentenceSimilarity(options);