1 write to Trainers
Microsoft.ML.Data (1)
TrainCatalog.cs (1)
578Trainers = new RegressionTrainers(this);
121 references to Trainers
Microsoft.ML.AutoML (17)
SweepableEstimator\Estimators\FastForest.cs (1)
41return context.Regression.Trainers.FastForest(option);
SweepableEstimator\Estimators\FastTree.cs (2)
51return context.Regression.Trainers.FastTree(option); 74return context.Regression.Trainers.FastTreeTweedie(option);
SweepableEstimator\Estimators\Lbfgs.cs (1)
41return context.Regression.Trainers.LbfgsPoissonRegression(option);
SweepableEstimator\Estimators\LightGbm.cs (1)
89return context.Regression.Trainers.LightGbm(option);
SweepableEstimator\Estimators\Sdca.cs (1)
23return context.Regression.Trainers.Sdca(option);
SweepableEstimator\Estimators\SentenceSimilarity.cs (1)
17return context.Regression.Trainers.SentenceSimilarity(
Sweepers\SmacSweeper.cs (1)
129var trainer = _context.Regression.Trainers.FastForest(new FastForestRegressionTrainer.Options()
TrainerExtensions\RegressionTrainerExtensions.cs (8)
27return mlContext.Regression.Trainers.FastForest(options); 49return mlContext.Regression.Trainers.FastTree(options); 71return mlContext.Regression.Trainers.FastTreeTweedie(options); 92return mlContext.Regression.Trainers.LightGbm(options); 113return mlContext.Regression.Trainers.OnlineGradientDescent(options); 135return mlContext.Regression.Trainers.Ols(options); 157return mlContext.Regression.Trainers.LbfgsPoissonRegression(options); 178return mlContext.Regression.Trainers.Sdca(options);
Tuner\SmacTuner.cs (1)
141var 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)
321var trainer = mlContext.Regression.Trainers.OnlineGradientDescent( 365var trainer = mlContext.Regression.Trainers.LbfgsPoissonRegression(
Validation.cs (3)
42.Append(mlContext.Regression.Trainers.Ols()); 121var 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)
30var pipeline = mlContext.Regression.Trainers.FastForest(
Dynamic\Trainers\Regression\FastForestWithOptions.cs (1)
45mlContext.Regression.Trainers.FastForest(options);
Dynamic\Trainers\Regression\FastTree.cs (1)
30var pipeline = mlContext.Regression.Trainers.FastTree(
Dynamic\Trainers\Regression\FastTreeTweedie.cs (1)
30var pipeline = mlContext.Regression.Trainers.FastTreeTweedie(
Dynamic\Trainers\Regression\FastTreeTweedieWithOptions.cs (1)
47mlContext.Regression.Trainers.FastTreeTweedie(options);
Dynamic\Trainers\Regression\FastTreeWithOptions.cs (1)
48mlContext.Regression.Trainers.FastTree(options);
Dynamic\Trainers\Regression\Gam.cs (1)
30var pipeline = mlContext.Regression.Trainers.Gam(
Dynamic\Trainers\Regression\GamWithOptions.cs (1)
43mlContext.Regression.Trainers.Gam(options);
Dynamic\Trainers\Regression\LbfgsPoissonRegression.cs (1)
27var pipeline = mlContext.Regression.Trainers.
Dynamic\Trainers\Regression\LbfgsPoissonRegressionWithOptions.cs (1)
44mlContext.Regression.Trainers.LbfgsPoissonRegression(options);
Dynamic\Trainers\Regression\LightGbm.cs (1)
30var pipeline = mlContext.Regression.Trainers.
Dynamic\Trainers\Regression\LightGbmAdvanced.cs (1)
41.Append(mlContext.Regression.Trainers.LightGbm(
Dynamic\Trainers\Regression\LightGbmWithOptions.cs (1)
52mlContext.Regression.Trainers.LightGbm(options);
Dynamic\Trainers\Regression\LightGbmWithOptionsAdvanced.cs (1)
42.Append(mlContext.Regression.Trainers.LightGbm(
Dynamic\Trainers\Regression\OnlineGradientDescent.cs (1)
27var pipeline = mlContext.Regression.Trainers.OnlineGradientDescent(
Dynamic\Trainers\Regression\OnlineGradientDescentWithOptions.cs (1)
44mlContext.Regression.Trainers.OnlineGradientDescent(options);
Dynamic\Trainers\Regression\OrdinaryLeastSquares.cs (1)
27var pipeline = mlContext.Regression.Trainers.Ols(
Dynamic\Trainers\Regression\OrdinaryLeastSquaresAdvanced.cs (1)
53var pipeline = mlContext.Regression.Trainers.Ols();
Dynamic\Trainers\Regression\OrdinaryLeastSquaresWithOptions.cs (1)
41mlContext.Regression.Trainers.Ols(options);
Dynamic\Trainers\Regression\OrdinaryLeastSquaresWithOptionsAdvanced.cs (1)
53var 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)
27var pipeline = mlContext.Regression.Trainers.Sdca(
Dynamic\Trainers\Regression\SdcaWithOptions.cs (1)
45mlContext.Regression.Trainers.Sdca(options);
Dynamic\Transforms\CalculateFeatureContribution.cs (1)
36var linearTrainer = mlContext.Regression.Trainers.Ols();
Microsoft.ML.Samples.OneDal (2)
Program.cs (2)
111var trainer = mlContext.Regression.Trainers.FastForest(options); 139var trainer = mlContext.Regression.Trainers.Ols(options);
Microsoft.ML.Tests (51)
FeatureContributionTests.cs (11)
31var model = ML.Regression.Trainers.Ols().Fit(data); 47TestFeatureContribution(ML.Regression.Trainers.Ols(), GetSparseDataset(numberOfInstances: 100), "LeastSquaresRegression"); 53TestFeatureContribution(ML.Regression.Trainers.LightGbm(), GetSparseDataset(numberOfInstances: 100), "LightGbmRegression"); 59TestFeatureContribution(ML.Regression.Trainers.LightGbm(new LightGbmRegressionTrainer.Options() { UseCategoricalSplit = true }), GetOneHotEncodedData(numberOfInstances: 100), "LightGbmRegressionWithCategoricalSplit"); 65TestFeatureContribution(ML.Regression.Trainers.FastTree(), GetSparseDataset(numberOfInstances: 100), "FastTreeRegression"); 71TestFeatureContribution(ML.Regression.Trainers.FastForest(), GetSparseDataset(numberOfInstances: 100), "FastForestRegression"); 77TestFeatureContribution(ML.Regression.Trainers.FastTreeTweedie(), GetSparseDataset(numberOfInstances: 100), "FastTreeTweedieRegression"); 83TestFeatureContribution(ML.Regression.Trainers.Sdca( 90TestFeatureContribution(ML.Regression.Trainers.OnlineGradientDescent(), GetSparseDataset(numberOfInstances: 100), "OnlineGradientDescentRegression"); 96TestFeatureContribution(ML.Regression.Trainers.LbfgsPoissonRegression( 103TestFeatureContribution(ML.Regression.Trainers.Gam(), GetSparseDataset(numberOfInstances: 100), "GAMRegression");
OnnxConversionTest.cs (10)
79.Append(mlContext.Regression.Trainers.Sdca(new SdcaRegressionTrainer.Options() 189mlContext.Regression.Trainers.OnlineGradientDescent("Target","FeatureVector"), 190mlContext.Regression.Trainers.FastForest("Target", "FeatureVector"), 191mlContext.Regression.Trainers.FastTree("Target", "FeatureVector"), 192mlContext.Regression.Trainers.FastTreeTweedie("Target", "FeatureVector"), 193mlContext.Regression.Trainers.LbfgsPoissonRegression("Target", "FeatureVector"), 197estimators.Add(mlContext.Regression.Trainers.Ols("Target", "FeatureVector")); 201estimators.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)
38var model = ML.Regression.Trainers.OnlineGradientDescent().Fit(data); 106var model = ML.Transforms.CopyColumns("Label", "Label").Append(ML.Regression.Trainers.OnlineGradientDescent()).Fit(data); 180var model = ML.Regression.Trainers.OnlineGradientDescent().Fit(data); 268var 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)
37var trainer = context.Regression.Trainers.Sdca(labelColumnName: "Label", featureColumnName: "Features");
TrainerEstimators\LbfgsTests.cs (1)
50var trainer = ML.Regression.Trainers.LbfgsPoissonRegression();
TrainerEstimators\OlsLinearRegressionTests.cs (2)
18var trainer = ML.Regression.Trainers.Ols(new OlsTrainer.Options()); 26trainer = ML.Regression.Trainers.Ols(new OlsTrainer.Options() { CalculateStatistics = false });
TrainerEstimators\OnlineLinearTests.cs (1)
29var ogdTrainer = ML.Regression.Trainers.OnlineGradientDescent();
TrainerEstimators\SdcaTests.cs (1)
39var 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)
216var trainer = ML.Regression.Trainers.FastTree( 234var trainer = ML.Regression.Trainers.LightGbm(new LightGbmRegressionTrainer.Options 271var trainer = ML.Regression.Trainers.FastTreeTweedie( 290var trainer = ML.Regression.Trainers.FastForest( 909var trainer = ML.Regression.Trainers.FastTree( 927var trainer = ML.Regression.Trainers.FastForest( 945var trainer = ML.Regression.Trainers.FastTreeTweedie( 966var trainer = ML.Regression.Trainers.LightGbm(
Microsoft.ML.TorchSharp.Tests (2)
TextClassificationTests.cs (2)
387var estimator = ML.Regression.Trainers.SentenceSimilarity(sentence1ColumnName: "Sentence", sentence2ColumnName: "Sentence2"); 442var estimator = ML.Regression.Trainers.SentenceSimilarity(options);