107 references to RegressionPredictionTransformer
Microsoft.ML.AutoML (2)
TrainerExtensions\RegressionTrainerExtensions.cs (1)
91
LightGbmRegressionTrainer.Options options = TrainerExtensionUtil.CreateLightGbmOptions<LightGbmRegressionTrainer.Options, float,
RegressionPredictionTransformer
<LightGbmRegressionModelParameters>, LightGbmRegressionModelParameters>(sweepParams, columnInfo);
Tuner\SmacTuner.cs (1)
148
var
model = trainer.Fit(trainTestSplit.TrainSet);
Microsoft.ML.Data (5)
Scorers\PredictionTransformer.cs (5)
574
: base(Contracts.CheckRef(env, nameof(env)).Register(nameof(
RegressionPredictionTransformer
<TModel>)), model, inputSchema, featureColumn)
580
: base(Contracts.CheckRef(env, nameof(env)).Register(nameof(
RegressionPredictionTransformer
<TModel>)), ctx)
609
loaderAssemblyName: typeof(
RegressionPredictionTransformer
<>).Assembly.FullName);
756
var host = Contracts.CheckRef(env, nameof(env)).Register(nameof(
RegressionPredictionTransformer
<IPredictorProducing<float>>));
760
Type predictionTransformerType = typeof(
RegressionPredictionTransformer
<>);
Microsoft.ML.EntryPoints (1)
PermutationFeatureImportance.cs (1)
209
var
pred = new RegressionPredictionTransformer<IPredictorProducing<float>>(
Microsoft.ML.FastTree (19)
FastTreeRegression.cs (4)
59
: BoostingFastTreeTrainerBase<FastTreeRegressionTrainer.Options,
RegressionPredictionTransformer
<FastTreeRegressionModelParameters>, FastTreeRegressionModelParameters>
191
private protected override
RegressionPredictionTransformer
<FastTreeRegressionModelParameters> MakeTransformer(FastTreeRegressionModelParameters model, DataViewSchema trainSchema)
196
/// a <see cref="
RegressionPredictionTransformer
{FastTreeRegressionModelParameters}"/>.
198
public
RegressionPredictionTransformer
<FastTreeRegressionModelParameters> Fit(IDataView trainData, IDataView validationData)
FastTreeTweedie.cs (4)
64
: BoostingFastTreeTrainerBase<FastTreeTweedieTrainer.Options,
RegressionPredictionTransformer
<FastTreeTweedieModelParameters>, FastTreeTweedieModelParameters>
350
private protected override
RegressionPredictionTransformer
<FastTreeTweedieModelParameters> MakeTransformer(FastTreeTweedieModelParameters model, DataViewSchema trainSchema)
355
/// a <see cref="
RegressionPredictionTransformer
{FastTreeTweedieModelParameters}"/>.
357
public
RegressionPredictionTransformer
<FastTreeTweedieModelParameters> Fit(IDataView trainData, IDataView validationData)
GamRegression.cs (4)
52
public sealed class GamRegressionTrainer : GamTrainerBase<GamRegressionTrainer.Options,
RegressionPredictionTransformer
<GamRegressionModelParameters>, GamRegressionModelParameters>
125
private protected override
RegressionPredictionTransformer
<GamRegressionModelParameters> MakeTransformer(GamRegressionModelParameters model, DataViewSchema trainSchema)
130
/// a <see cref="
RegressionPredictionTransformer
{RegressionGamModelParameters}"/>.
132
public
RegressionPredictionTransformer
<GamRegressionModelParameters> Fit(IDataView trainData, IDataView validationData)
RandomForestRegression.cs (4)
294
: RandomForestTrainerBase<FastForestRegressionTrainer.Options,
RegressionPredictionTransformer
<FastForestRegressionModelParameters>, FastForestRegressionModelParameters>
494
private protected override
RegressionPredictionTransformer
<FastForestRegressionModelParameters> MakeTransformer(FastForestRegressionModelParameters model, DataViewSchema trainSchema)
499
/// a <see cref="
RegressionPredictionTransformer
{FastForestRegressionModelParameters}"/>.
501
public
RegressionPredictionTransformer
<FastForestRegressionModelParameters> Fit(IDataView trainData, IDataView validationData)
TreeEnsembleFeaturizationEstimator.cs (3)
288
var
trained = trainer.Fit(input);
374
var
trained = trainer.Fit(input);
460
var
trained = trainer.Fit(input);
Microsoft.ML.IntegrationTests (15)
Explainability.cs (6)
45
RegressionPredictionTransformer
<FastTreeRegressionModelParameters> linearPredictor;
60
linearPredictor = (loadedModel as TransformerChain<ITransformer>).LastTransformer as
RegressionPredictionTransformer
<FastTreeRegressionModelParameters>;
182
var
predictor = model.LastTransformer;
219
var
predictor = model.LastTransformer;
256
var
predictor = model.LastTransformer;
294
var
predictor = model.LastTransformer;
IntrospectiveTraining.cs (1)
300
typeof(
RegressionPredictionTransformer
<FastForestRegressionModelParameters>)};
Training.cs (6)
329
var
firstModel = trainer.Fit(featurizedData);
333
var
firstModelPrime = trainer.Fit(featurizedData);
337
var
secondModel = trainer.Fit(featurizedData, firstModel.Model);
373
var
firstModel = trainer.Fit(featurizedData);
377
var
firstModelPrime = trainer.Fit(featurizedData);
381
var
secondModel = trainer.Fit(featurizedData, firstModel.Model);
Validation.cs (2)
49
Assert.IsType<TransformerChain<
RegressionPredictionTransformer
<OlsModelParameters>>>(cvResult[0].Model);
121
var
trainedModel = mlContext.Regression.Trainers.FastTree(new FastTreeRegressionTrainer.Options
Microsoft.ML.LightGbm (4)
LightGbmRegressionTrainer.cs (4)
107
RegressionPredictionTransformer
<LightGbmRegressionModelParameters>,
254
private protected override
RegressionPredictionTransformer
<LightGbmRegressionModelParameters> MakeTransformer(LightGbmRegressionModelParameters model, DataViewSchema trainSchema)
259
/// a <see cref="
RegressionPredictionTransformer
{LightGbmRegressionModelParameters}"/>.
261
public
RegressionPredictionTransformer
<LightGbmRegressionModelParameters> Fit(IDataView trainData, IDataView validationData)
Microsoft.ML.Mkl.Components (2)
OlsLinearRegression.cs (2)
67
public sealed class OlsTrainer : TrainerEstimatorBase<
RegressionPredictionTransformer
<OlsModelParameters>, OlsModelParameters>
131
private protected override
RegressionPredictionTransformer
<OlsModelParameters> MakeTransformer(OlsModelParameters model, DataViewSchema trainSchema)
Microsoft.ML.Samples (24)
Dynamic\Trainers\Regression\FastForest.cs (1)
35
var
model = pipeline.Fit(trainingData);
Dynamic\Trainers\Regression\FastForestWithOptions.cs (1)
48
var
model = pipeline.Fit(trainingData);
Dynamic\Trainers\Regression\FastTree.cs (1)
35
var
model = pipeline.Fit(trainingData);
Dynamic\Trainers\Regression\FastTreeTweedie.cs (1)
35
var
model = pipeline.Fit(trainingData);
Dynamic\Trainers\Regression\FastTreeTweedieWithOptions.cs (1)
50
var
model = pipeline.Fit(trainingData);
Dynamic\Trainers\Regression\FastTreeWithOptions.cs (1)
51
var
model = pipeline.Fit(trainingData);
Dynamic\Trainers\Regression\Gam.cs (1)
35
var
model = pipeline.Fit(trainingData);
Dynamic\Trainers\Regression\GamWithOptions.cs (1)
46
var
model = pipeline.Fit(trainingData);
Dynamic\Trainers\Regression\LbfgsPoissonRegression.cs (1)
33
var
model = pipeline.Fit(trainingData);
Dynamic\Trainers\Regression\LbfgsPoissonRegressionWithOptions.cs (1)
47
var
model = pipeline.Fit(trainingData);
Dynamic\Trainers\Regression\LightGbm.cs (1)
36
var
model = pipeline.Fit(trainingData);
Dynamic\Trainers\Regression\LightGbmWithOptions.cs (1)
55
var
model = pipeline.Fit(trainingData);
Dynamic\Trainers\Regression\OnlineGradientDescent.cs (1)
32
var
model = pipeline.Fit(trainingData);
Dynamic\Trainers\Regression\OnlineGradientDescentWithOptions.cs (1)
47
var
model = pipeline.Fit(trainingData);
Dynamic\Trainers\Regression\OrdinaryLeastSquares.cs (1)
32
var
model = pipeline.Fit(trainingData);
Dynamic\Trainers\Regression\OrdinaryLeastSquaresAdvanced.cs (1)
55
var
model = pipeline.Fit(split.TrainSet);
Dynamic\Trainers\Regression\OrdinaryLeastSquaresWithOptions.cs (1)
44
var
model = pipeline.Fit(trainingData);
Dynamic\Trainers\Regression\OrdinaryLeastSquaresWithOptionsAdvanced.cs (1)
59
var
model = pipeline.Fit(split.TrainSet);
Dynamic\Trainers\Regression\PermutationFeatureImportance.cs (1)
41
var
linearPredictor = model.LastTransformer;
Dynamic\Trainers\Regression\PermutationFeatureImportanceLoadFromDisk.cs (2)
48
var
linearPredictor = (model as TransformerChain<ITransformer>).LastTransformer as
RegressionPredictionTransformer
<OlsModelParameters>;
Dynamic\Trainers\Regression\Sdca.cs (1)
32
var
model = pipeline.Fit(trainingData);
Dynamic\Trainers\Regression\SdcaWithOptions.cs (1)
48
var
model = pipeline.Fit(trainingData);
Dynamic\Transforms\CalculateFeatureContribution.cs (1)
39
var
linearModel = linearTrainer.Fit(transformedData);
Microsoft.ML.StandardTrainers (9)
Standard\Online\OnlineGradientDescent.cs (3)
58
public sealed class OnlineGradientDescentTrainer : AveragedLinearTrainer<
RegressionPredictionTransformer
<LinearRegressionModelParameters>, LinearRegressionModelParameters>
129
/// Trains a new <see cref="
RegressionPredictionTransformer
{LinearRegressionPredictor}"/>.
202
private protected override
RegressionPredictionTransformer
<LinearRegressionModelParameters> MakeTransformer(LinearRegressionModelParameters model, DataViewSchema trainSchema)
Standard\PoissonRegression\PoissonRegression.cs (4)
58
public sealed class LbfgsPoissonRegressionTrainer : LbfgsTrainerBase<LbfgsPoissonRegressionTrainer.Options,
RegressionPredictionTransformer
<PoissonRegressionModelParameters>, PoissonRegressionModelParameters>
127
private protected override
RegressionPredictionTransformer
<PoissonRegressionModelParameters> MakeTransformer(PoissonRegressionModelParameters model, DataViewSchema trainSchema)
132
/// a <see cref="
RegressionPredictionTransformer
{PoissonRegressionModelParameters}"/>.
134
public
RegressionPredictionTransformer
<PoissonRegressionModelParameters> Fit(IDataView trainData, LinearModelParameters linearModel)
Standard\SdcaRegression.cs (2)
54
public sealed class SdcaRegressionTrainer : SdcaTrainerBase<SdcaRegressionTrainer.Options,
RegressionPredictionTransformer
<LinearRegressionModelParameters>, LinearRegressionModelParameters>
201
private protected override
RegressionPredictionTransformer
<LinearRegressionModelParameters> MakeTransformer(LinearRegressionModelParameters model, DataViewSchema trainSchema)
Microsoft.ML.Sweeper (1)
Algorithms\SmacSweeper.cs (1)
145
var
predictor = trainer.Fit(view);
Microsoft.ML.Tests (25)
FeatureContributionTests.cs (1)
31
var
model = ML.Regression.Trainers.Ols().Fit(data);
PermutationFeatureImportanceTests.cs (11)
38
var
model = ML.Regression.Trainers.OnlineGradientDescent().Fit(data);
49
var
castedModel = loadedModel as
RegressionPredictionTransformer
<LinearRegressionModelParameters>;
123
var
castedModel = lastTransformer as
RegressionPredictionTransformer
<LinearRegressionModelParameters>;
180
var
model = ML.Regression.Trainers.OnlineGradientDescent().Fit(data);
191
var
castedModel = loadedModel as
RegressionPredictionTransformer
<LinearRegressionModelParameters>;
268
var
model = ML.Regression.Trainers.OnlineGradientDescent().Fit(data);
279
var
castedModel = loadedModel as
RegressionPredictionTransformer
<LinearRegressionModelParameters>;
Scenarios\Api\CookbookSamples\CookbookSamplesDynamicApi.cs (1)
470
var
linearModel = model.LastTransformer;
TrainerEstimators\LbfgsTests.cs (1)
53
var
model = trainer.Fit(dataView);
TrainerEstimators\OlsLinearRegressionTests.cs (1)
21
var
model = trainer.Fit(dataView);
TrainerEstimators\OnlineLinearTests.cs (1)
31
var
ogdModel = ogdTrainer.Fit(regressionTrainData);
TrainerEstimators\TreeEstimators.cs (9)
220
var
model = trainer.Fit(dataView, dataView);
241
var
model = trainer.Fit(dataView, dataView);
260
var
model = trainer.Fit(dataView, dataView);
279
var
model = trainer.Fit(dataView, dataView);
298
var
model = trainer.Fit(dataView, dataView);
912
var
transformer = trainer.Fit(dataView);
930
var
transformer = trainer.Fit(dataView);
948
var
transformer = trainer.Fit(dataView);
973
var
transformer = trainer.Fit(dataView);