1 instantiation of BinaryPredictionTransformer
Microsoft.ML.Data (1)
TrainCatalog.cs (1)
296
return new
BinaryPredictionTransformer
<TModel>(Environment, model.Model, model.TrainSchema, model.FeatureColumnName, threshold, model.ThresholdColumn);
162 references to BinaryPredictionTransformer
Microsoft.ML.AutoML (1)
TrainerExtensions\BinaryTrainerExtensions.cs (1)
118
LightGbmBinaryTrainer.Options options = TrainerExtensionUtil.CreateLightGbmOptions<LightGbmBinaryTrainer.Options, float,
BinaryPredictionTransformer
<CalibratedModelParametersBase<LightGbmBinaryModelParameters, PlattCalibrator>>, CalibratedModelParametersBase<LightGbmBinaryModelParameters, PlattCalibrator>>(sweepParams, columnInfo);
Microsoft.ML.Data (8)
Scorers\PredictionTransformer.cs (6)
394
: base(Contracts.CheckRef(env, nameof(env)).Register(nameof(
BinaryPredictionTransformer
<TModel>)), model, inputSchema, featureColumn)
405
: base(Contracts.CheckRef(env, nameof(env)).Register(nameof(
BinaryPredictionTransformer
<TModel>)), model, inputSchema, featureColumn)
415
: base(Contracts.CheckRef(env, nameof(env)).Register(nameof(
BinaryPredictionTransformer
<TModel>)), ctx)
468
loaderAssemblyName: typeof(
BinaryPredictionTransformer
<>).Assembly.FullName);
722
var host = Contracts.CheckRef(env, nameof(env)).Register(nameof(
BinaryPredictionTransformer
<IPredictorProducing<float>>));
726
Type predictionTransformerType = typeof(
BinaryPredictionTransformer
<>);
TrainCatalog.cs (2)
291
public
BinaryPredictionTransformer
<TModel> ChangeModelThreshold<TModel>(
BinaryPredictionTransformer
<TModel> model, float threshold)
Microsoft.ML.EntryPoints (1)
PermutationFeatureImportance.cs (1)
93
var
pred = new BinaryPredictionTransformer<IPredictorProducing<float>>(
Microsoft.ML.FastTree (14)
FastTreeClassification.cs (4)
131
BinaryPredictionTransformer
<CalibratedModelParametersBase<FastTreeBinaryModelParameters, PlattCalibrator>>,
301
private protected override
BinaryPredictionTransformer
<CalibratedModelParametersBase<FastTreeBinaryModelParameters, PlattCalibrator>> MakeTransformer(
307
/// a <see cref="
BinaryPredictionTransformer
{CalibratedModelParametersBase}"/>.
309
public
BinaryPredictionTransformer
<CalibratedModelParametersBase<FastTreeBinaryModelParameters, PlattCalibrator>> Fit(IDataView trainData, IDataView validationData)
GamClassification.cs (4)
57
BinaryPredictionTransformer
<CalibratedModelParametersBase<GamBinaryModelParameters, PlattCalibrator>>,
172
private protected override
BinaryPredictionTransformer
<CalibratedModelParametersBase<GamBinaryModelParameters, PlattCalibrator>>
178
/// a <see cref="
BinaryPredictionTransformer
{CalibratedModelParametersBase}"/>.
180
public
BinaryPredictionTransformer
<CalibratedModelParametersBase<GamBinaryModelParameters, PlattCalibrator>> Fit(IDataView trainData, IDataView validationData)
RandomForestClassification.cs (4)
147
RandomForestTrainerBase<FastForestBinaryTrainer.Options,
BinaryPredictionTransformer
<FastForestBinaryModelParameters>, FastForestBinaryModelParameters>
365
private protected override
BinaryPredictionTransformer
<FastForestBinaryModelParameters> MakeTransformer(FastForestBinaryModelParameters model, DataViewSchema trainSchema)
370
/// a <see cref="
BinaryPredictionTransformer
{FastForestClassificationModelParameters}"/>.
372
public
BinaryPredictionTransformer
<FastForestBinaryModelParameters> Fit(IDataView trainData, IDataView validationData)
TreeEnsembleFeaturizationEstimator.cs (2)
245
var
trained = trainer.Fit(input);
331
var
trained = trainer.Fit(input);
Microsoft.ML.IntegrationTests (20)
ModelFiles.cs (2)
144
var
transformerModel = pipeline.Fit(data);
275
var
model = pipeline.Fit(data);
Prediction.cs (4)
69
var newModel = new TransformerChain<
BinaryPredictionTransformer
<CalibratedModelParametersBase<LinearBinaryModelParameters, PlattCalibrator>>>(transformers.ToArray());
85
var
model = pipeline.Fit(data);
86
var
newModel = mlContext.BinaryClassification.ChangeModelThreshold(model, -2.0f);
108
var
model = pipeline.Fit(data);
Training.cs (14)
59
var
sdca = sdcaTrainer.Fit(featurizedTrain);
60
var
fastTree = fastTreeTrainer.Fit(featurizedTrain);
103
var
firstModel = trainer.Fit(featurizedData);
107
var
firstModelPrime = trainer.Fit(featurizedData);
111
var
secondModel = trainer.Fit(featurizedData, firstModel.Model);
191
var
firstModel = trainer.Fit(featurizedData);
195
var
firstModelPrime = trainer.Fit(featurizedData);
199
var
secondModel = trainer.Fit(featurizedData, firstModel.Model);
235
var
firstModel = trainer.Fit(featurizedData);
239
var
firstModelPrime = trainer.Fit(featurizedData);
243
var
secondModel = trainer.Fit(featurizedData, firstModel.Model.SubModel);
421
var
firstModel = trainer.Fit(featurizedData);
425
var
firstModelPrime = trainer.Fit(featurizedData);
429
var
secondModel = trainer.Fit(featurizedData, firstModel.Model.SubModel);
Microsoft.ML.LightGbm (4)
LightGbmBinaryTrainer.cs (4)
115
BinaryPredictionTransformer
<CalibratedModelParametersBase<LightGbmBinaryModelParameters, PlattCalibrator>>,
292
private protected override
BinaryPredictionTransformer
<CalibratedModelParametersBase<LightGbmBinaryModelParameters, PlattCalibrator>>
298
/// a <see cref="
BinaryPredictionTransformer
{CalibratedModelParametersBase}"/>.
300
public
BinaryPredictionTransformer
<CalibratedModelParametersBase<LightGbmBinaryModelParameters, PlattCalibrator>> Fit(IDataView trainData, IDataView validationData)
Microsoft.ML.Mkl.Components (3)
SymSgdClassificationTrainer.cs (3)
72
public sealed class SymbolicSgdLogisticRegressionBinaryTrainer : TrainerEstimatorBase<
BinaryPredictionTransformer
<TPredictor>, TPredictor>
262
private protected override
BinaryPredictionTransformer
<TPredictor> MakeTransformer(TPredictor model, DataViewSchema trainSchema)
269
public
BinaryPredictionTransformer
<TPredictor> Fit(IDataView trainData, LinearModelParameters modelParameters)
Microsoft.ML.PerformanceTests (1)
PredictionEngineBench.cs (1)
131
var
model = pipeline.Fit(data);
Microsoft.ML.Samples (39)
Dynamic\Trainers\BinaryClassification\AveragedPerceptron.cs (1)
31
var
model = pipeline.Fit(trainingData);
Dynamic\Trainers\BinaryClassification\AveragedPerceptronWithOptions.cs (1)
42
var
model = pipeline.Fit(trainingData);
Dynamic\Trainers\BinaryClassification\Calibrators\FixedPlatt.cs (1)
33
var
transformer = pipeline.Fit(trainTestData.TrainSet);
Dynamic\Trainers\BinaryClassification\Calibrators\Isotonic.cs (1)
33
var
transformer = pipeline.Fit(trainTestData.TrainSet);
Dynamic\Trainers\BinaryClassification\Calibrators\Naive.cs (1)
33
var
transformer = pipeline.Fit(trainTestData.TrainSet);
Dynamic\Trainers\BinaryClassification\Calibrators\Platt.cs (1)
33
var
transformer = pipeline.Fit(trainTestData.TrainSet);
Dynamic\Trainers\BinaryClassification\FastForest.cs (1)
34
var
model = pipeline.Fit(trainingData);
Dynamic\Trainers\BinaryClassification\FastForestWithOptions.cs (1)
46
var
model = pipeline.Fit(trainingData);
Dynamic\Trainers\BinaryClassification\FastTree.cs (1)
34
var
model = pipeline.Fit(trainingData);
Dynamic\Trainers\BinaryClassification\FastTreeWithOptions.cs (1)
46
var
model = pipeline.Fit(trainingData);
Dynamic\Trainers\BinaryClassification\Gam.cs (1)
45
var
model = trainer.Fit(trainSet, validSet);
Dynamic\Trainers\BinaryClassification\GamWithOptions.cs (1)
53
var
model = trainer.Fit(trainSet, validSet);
Dynamic\Trainers\BinaryClassification\LbfgsLogisticRegression.cs (1)
31
var
model = pipeline.Fit(trainingData);
Dynamic\Trainers\BinaryClassification\LbfgsLogisticRegressionWithOptions.cs (1)
40
var
model = pipeline.Fit(trainingData);
Dynamic\Trainers\BinaryClassification\LdSvm.cs (1)
31
var
model = pipeline.Fit(trainingData);
Dynamic\Trainers\BinaryClassification\LdSvmWithOptions.cs (1)
40
var
model = pipeline.Fit(trainingData);
Dynamic\Trainers\BinaryClassification\LightGbm.cs (1)
34
var
model = pipeline.Fit(trainingData);
Dynamic\Trainers\BinaryClassification\LightGbmWithOptions.cs (1)
45
var
model = pipeline.Fit(trainingData);
Dynamic\Trainers\BinaryClassification\LinearSvm.cs (1)
31
var
model = pipeline.Fit(trainingData);
Dynamic\Trainers\BinaryClassification\LinearSvmWithOptions.cs (1)
40
var
model = pipeline.Fit(trainingData);
Dynamic\Trainers\BinaryClassification\PermutationFeatureImportance.cs (1)
40
var
linearPredictor = model.LastTransformer;
Dynamic\Trainers\BinaryClassification\PermutationFeatureImportanceLoadFromDisk.cs (3)
31
var
lt = model0.LastTransformer;
41
var
linearPredictor = (model as TransformerChain<ITransformer>).LastTransformer as
BinaryPredictionTransformer
<CalibratedModelParametersBase<LinearBinaryModelParameters, PlattCalibrator>>;
Dynamic\Trainers\BinaryClassification\PriorTrainer.cs (1)
31
var
model = pipeline.Fit(trainingData);
Dynamic\Trainers\BinaryClassification\SdcaLogisticRegression.cs (1)
39
var
model = pipeline.Fit(trainingData);
Dynamic\Trainers\BinaryClassification\SdcaLogisticRegressionWithOptions.cs (1)
51
var
model = pipeline.Fit(trainingData);
Dynamic\Trainers\BinaryClassification\SdcaNonCalibrated.cs (1)
39
var
model = pipeline.Fit(trainingData);
Dynamic\Trainers\BinaryClassification\SdcaNonCalibratedWithOptions.cs (1)
53
var
model = pipeline.Fit(trainingData);
Dynamic\Trainers\BinaryClassification\SgdCalibrated.cs (1)
31
var
model = pipeline.Fit(trainingData);
Dynamic\Trainers\BinaryClassification\SgdCalibratedWithOptions.cs (1)
43
var
model = pipeline.Fit(trainingData);
Dynamic\Trainers\BinaryClassification\SgdNonCalibrated.cs (1)
31
var
model = pipeline.Fit(trainingData);
Dynamic\Trainers\BinaryClassification\SgdNonCalibratedWithOptions.cs (1)
40
var
model = pipeline.Fit(trainingData);
Dynamic\Trainers\BinaryClassification\SymbolicSgdLogisticRegression.cs (1)
34
var
model = pipeline.Fit(trainingData);
Dynamic\Trainers\BinaryClassification\SymbolicSgdLogisticRegressionWithOptions.cs (1)
43
var
model = pipeline.Fit(trainingData);
Dynamic\Trainers\Regression\GamAdvanced.cs (1)
45
var
model = trainer.Fit(trainSet, validSet);
Dynamic\Trainers\Regression\GamWithOptionsAdvanced.cs (1)
53
var
model = trainer.Fit(trainSet, validSet);
Dynamic\Transforms\CalculateFeatureContributionCalibrated.cs (1)
40
var
linearModel = linearTrainer.Fit(transformedData);
Dynamic\Transforms\TreeFeaturization\PretrainedTreeEnsembleFeaturizationWithOptions.cs (1)
50
var
model = trainer.Fit(dataView);
Microsoft.ML.StandardTrainers (20)
LdSvm\LdSvmTrainer.cs (2)
66
public sealed class LdSvmTrainer : TrainerEstimatorBase<
BinaryPredictionTransformer
<LdSvmModelParameters>, LdSvmModelParameters>
665
private protected override
BinaryPredictionTransformer
<LdSvmModelParameters> MakeTransformer(LdSvmModelParameters model, DataViewSchema trainSchema)
Standard\LogisticRegression\LogisticRegression.cs (4)
83
BinaryPredictionTransformer
<CalibratedModelParametersBase<LinearBinaryModelParameters, PlattCalibrator>>,
179
private protected override
BinaryPredictionTransformer
<CalibratedModelParametersBase<LinearBinaryModelParameters, PlattCalibrator>>
185
/// a <see cref="
BinaryPredictionTransformer
{CalibratedModelParametersBase}"/>.
187
public
BinaryPredictionTransformer
<CalibratedModelParametersBase<LinearBinaryModelParameters, PlattCalibrator>> Fit(IDataView trainData, LinearModelParameters modelParameters)
Standard\MulticlassClassification\OneVersusAllTrainer.cs (1)
86
/// <seealso cref="StandardTrainersCatalog.OneVersusAll{TModel}(MulticlassClassificationCatalog.MulticlassClassificationTrainers, ITrainerEstimator{
BinaryPredictionTransformer
{TModel}, TModel}, string, bool, IEstimator{ISingleFeaturePredictionTransformer{ICalibrator}}, int, bool)" />
Standard\Online\AveragedPerceptron.cs (2)
71
public sealed class AveragedPerceptronTrainer : AveragedLinearTrainer<
BinaryPredictionTransformer
<LinearBinaryModelParameters>, LinearBinaryModelParameters>
217
private protected override
BinaryPredictionTransformer
<LinearBinaryModelParameters> MakeTransformer(LinearBinaryModelParameters model, DataViewSchema trainSchema)
Standard\Online\LinearSvm.cs (2)
65
public sealed class LinearSvmTrainer : OnlineLinearTrainer<
BinaryPredictionTransformer
<LinearBinaryModelParameters>, LinearBinaryModelParameters>
337
private protected override
BinaryPredictionTransformer
<LinearBinaryModelParameters> MakeTransformer(LinearBinaryModelParameters model, DataViewSchema trainSchema)
Standard\SdcaBinary.cs (5)
1445
SdcaTrainerBase<SdcaBinaryTrainerBase<TModelParameters>.BinaryOptionsBase,
BinaryPredictionTransformer
<TModelParameters>, TModelParameters>
1550
private protected override
BinaryPredictionTransformer
<TModelParameters> MakeTransformer(TModelParameters model, DataViewSchema trainSchema)
1832
LinearTrainerBase<
BinaryPredictionTransformer
<TModel>, TModel>
2007
private protected override
BinaryPredictionTransformer
<TModel> MakeTransformer(TModel model, DataViewSchema trainSchema)
2013
public
BinaryPredictionTransformer
<TModel> Fit(IDataView trainData, LinearModelParameters modelParameters)
Standard\Simple\SimpleTrainers.cs (3)
194
ITrainerEstimator<
BinaryPredictionTransformer
<PriorModelParameters>, PriorModelParameters>
241
/// Trains and returns a <see cref="
BinaryPredictionTransformer
{PriorModelParameters}"/>.
243
public
BinaryPredictionTransformer
<PriorModelParameters> Fit(IDataView input)
StandardTrainersCatalog.cs (1)
753
ITrainerEstimator<
BinaryPredictionTransformer
<TModel>, TModel> binaryEstimator,
Microsoft.ML.Tests (51)
CalibratedModelParametersTests.cs (9)
27
var
model = ML.BinaryClassification.Trainers.LbfgsLogisticRegression(
34
var
castedModel = loadedModel as
BinaryPredictionTransformer
<CalibratedModelParametersBase<LinearBinaryModelParameters, PlattCalibrator>>;
49
var
model = ML.BinaryClassification.Trainers.Gam(
56
var
castedModel = loadedModel as
BinaryPredictionTransformer
<CalibratedModelParametersBase<GamBinaryModelParameters, PlattCalibrator>>;
72
var
model = ML.BinaryClassification.Trainers.FastTree(
79
var
castedModel = loadedModel as
BinaryPredictionTransformer
<CalibratedModelParametersBase<FastTreeBinaryModelParameters, PlattCalibrator>>;
PermutationFeatureImportanceTests.cs (7)
342
var
model = ML.BinaryClassification.Trainers.LbfgsLogisticRegression(
354
var
castedModel = loadedModel as
BinaryPredictionTransformer
<CalibratedModelParametersBase<LinearBinaryModelParameters, PlattCalibrator>>;
416
var
model = ML.BinaryClassification.Trainers.LbfgsLogisticRegression(
428
var
castedModel = loadedModel as
BinaryPredictionTransformer
<CalibratedModelParametersBase<LinearBinaryModelParameters, PlattCalibrator>>;
492
var
model = ff.Fit(data);
Scenarios\Api\Estimators\TrainWithInitialPredictor.cs (1)
38
var
firstModel = trainer.Fit(trainData);
TrainerEstimators\CalibratorEstimators.cs (3)
114
Transformer = ((TransformerChain<
BinaryPredictionTransformer
<LinearBinaryModelParameters>>)transformer).LastTransformer as
BinaryPredictionTransformer
<LinearBinaryModelParameters>,
124
public
BinaryPredictionTransformer
<LinearBinaryModelParameters> Transformer { get; set; }
TrainerEstimators\LbfgsTests.cs (5)
27
var
model = trainer.Fit(transformedDataView);
64
var transformerChain = pipe.Fit(dataView) as TransformerChain<
BinaryPredictionTransformer
<CalibratedModelParametersBase<LinearBinaryModelParameters, PlattCalibrator>>>;
90
var transformer = pipe.Fit(dataView) as TransformerChain<
BinaryPredictionTransformer
<CalibratedModelParametersBase<LinearBinaryModelParameters, PlattCalibrator>>>;
128
var
lastTransformer = ((TransformerChain<ITransformer>)transformerChain).LastTransformer as
BinaryPredictionTransformer
<CalibratedModelParametersBase<LinearBinaryModelParameters, PlattCalibrator>>;
TrainerEstimators\OneDalEstimators.cs (1)
73
var
model = trainer.Fit(preprocessedTrainingData);
TrainerEstimators\OnlineLinearTests.cs (2)
46
var
apModel = apTrainer.Fit(binaryTrainData);
52
var
svmModel = svmTrainer.Fit(binaryTrainData);
TrainerEstimators\SdcaTests.cs (4)
78
var
model = pipeline.Fit(data);
123
var
modelWithoutWeights = sdcaWithoutWeightBinary.Fit(data);
124
var
modelWithWeights = sdcaWithWeightBinary.Fit(data);
238
var
model = pipeline.Fit(data);
TrainerEstimators\SymSgdClassificationTests.cs (4)
25
var
model = trainer.Fit(transformedDataView);
36
var
initPredictor = ML.BinaryClassification.Trainers.SdcaLogisticRegression().Fit(transformedData);
39
var
withInitPredictor = new SymbolicSgdLogisticRegressionBinaryTrainer(Env, new SymbolicSgdLogisticRegressionBinaryTrainer.Options()).Fit(transformedData,
43
var
notInitPredictor = new SymbolicSgdLogisticRegressionBinaryTrainer(Env, new SymbolicSgdLogisticRegressionBinaryTrainer.Options()).Fit(transformedData);
TrainerEstimators\TrainerEstimators.cs (3)
103
var
model = trainer.Fit(transformedDataView);
134
var
model = trainer.Fit(transformedDataView);
176
var
model = trainer.Fit(transformedDataView);
TrainerEstimators\TreeEnsembleFeaturizerTest.cs (6)
34
var
model = trainer.Fit(dataView);
142
var
model = trainer.Fit(dataView);
194
var
model = trainer.Fit(dataView);
249
var
model = trainer.Fit(dataView);
317
var
treeModel = trainer.Fit(dataView);
339
var
naiveModel = naivePipeline.Fit(dataView);
TrainerEstimators\TreeEstimators.cs (6)
53
var
model = trainer.Fit(transformedDataView, transformedDataView);
75
var
model = trainer.Fit(transformedDataView, transformedDataView);
97
var
model = trainer.Fit(transformedDataView, transformedDataView);
120
var
model = trainer.Fit(transformedDataView, transformedDataView);
142
var
model = trainer.Fit(transformedDataView, transformedDataView);
163
var
model = trainer.Fit(transformedDataView, transformedDataView);