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