3 instantiations of AveragedPerceptronTrainer
Microsoft.ML.StandardTrainers (3)
Standard\Online\AveragedPerceptron.cs (1)
232() => new AveragedPerceptronTrainer(host, input),
StandardTrainersCatalog.cs (2)
429return new AveragedPerceptronTrainer(env, labelColumnName, featureColumnName, lossFunction ?? new LogLoss(), learningRate, decreaseLearningRate, l2Regularization, numberOfIterations); 451return new AveragedPerceptronTrainer(env, options);
47 references to AveragedPerceptronTrainer
Microsoft.ML.AutoML (5)
TrainerExtensions\BinaryTrainerExtensions.cs (3)
29AveragedPerceptronTrainer.Options options = null; 32options = new AveragedPerceptronTrainer.Options(); 38options = TrainerExtensionUtil.CreateOptions<AveragedPerceptronTrainer.Options>(sweepParams, columnInfo.LabelColumnName);
TrainerExtensions\MultiTrainerExtensions.cs (2)
28var binaryTrainer = _binaryLearnerCatalogItem.CreateInstance(mlContext, sweepParams, columnInfo) as AveragedPerceptronTrainer;
Microsoft.ML.IntegrationTests (2)
Training.cs (2)
95var trainer = mlContext.BinaryClassification.Trainers.AveragedPerceptron( 96new AveragedPerceptronTrainer.Options { NumberOfIterations = 1 });
Microsoft.ML.PerformanceTests (4)
Text\MultiClassClassification.cs (4)
40var environment = EnvironmentFactory.CreateClassificationEnvironment<TextLoader, OneHotEncodingTransformer, AveragedPerceptronTrainer, LinearBinaryModelParameters>(); 71var environment = EnvironmentFactory.CreateClassificationEnvironment<TextLoader, OneHotEncodingTransformer, AveragedPerceptronTrainer, LinearBinaryModelParameters>(); 115var environment = EnvironmentFactory.CreateClassificationEnvironment<TextLoader, OneHotEncodingTransformer, AveragedPerceptronTrainer, LinearBinaryModelParameters>(); 126var environment = EnvironmentFactory.CreateClassificationEnvironment<TextLoader, OneHotEncodingTransformer, AveragedPerceptronTrainer, LinearBinaryModelParameters>();
Microsoft.ML.Predictor.Tests (2)
TestPredictors.cs (2)
769AveragedPerceptronTrainer.TrainBinary(ML, new AveragedPerceptronTrainer.Options()
Microsoft.ML.Samples (7)
Dynamic\Trainers\BinaryClassification\AveragedPerceptron.cs (1)
27var pipeline = mlContext.BinaryClassification.Trainers
Dynamic\Trainers\BinaryClassification\AveragedPerceptronWithOptions.cs (2)
28var options = new AveragedPerceptronTrainer.Options 38var pipeline = mlContext.BinaryClassification.Trainers
Dynamic\Trainers\BinaryClassification\Calibrators\FixedPlatt.cs (1)
28var pipeline = mlContext.BinaryClassification.Trainers
Dynamic\Trainers\BinaryClassification\Calibrators\Isotonic.cs (1)
28var pipeline = mlContext.BinaryClassification.Trainers
Dynamic\Trainers\BinaryClassification\Calibrators\Naive.cs (1)
28var pipeline = mlContext.BinaryClassification.Trainers
Dynamic\Trainers\BinaryClassification\Calibrators\Platt.cs (1)
28var pipeline = mlContext.BinaryClassification.Trainers
Microsoft.ML.SearchSpace.Tests (1)
SearchSpaceTest.cs (1)
290CreateAndVerifyDefaultSearchSpace<AveragedPerceptronTrainer.Options>();
Microsoft.ML.StandardTrainers (16)
Standard\Online\AveragedPerceptron.cs (10)
17[assembly: LoadableClass(AveragedPerceptronTrainer.Summary, typeof(AveragedPerceptronTrainer), typeof(AveragedPerceptronTrainer.Options), 19AveragedPerceptronTrainer.UserNameValue, 20AveragedPerceptronTrainer.LoadNameValue, "avgper", AveragedPerceptronTrainer.ShortName)] 22[assembly: LoadableClass(typeof(void), typeof(AveragedPerceptronTrainer), null, typeof(SignatureEntryPointModule), "AP")] 69/// <seealso cref="StandardTrainersCatalog.AveragedPerceptron(BinaryClassificationCatalog.BinaryClassificationTrainers, AveragedPerceptronTrainer.Options)"/> 86/// Options for the <see cref="AveragedPerceptronTrainer"/> as used in 124public TrainState(IChannel ch, int numFeatures, LinearModelParameters predictor, AveragedPerceptronTrainer parent)
StandardTrainersCatalog.cs (6)
12using static Microsoft.ML.Trainers.AveragedPerceptronTrainer; 396/// Create an <see cref="AveragedPerceptronTrainer"/>, which predicts a target using a linear binary classification model trained over boolean label data. 416public static AveragedPerceptronTrainer AveragedPerceptron( 433/// Create an <see cref="AveragedPerceptronTrainer"/> with advanced options, which predicts a target using a linear binary classification model trained over boolean label data. 444public static AveragedPerceptronTrainer AveragedPerceptron( 445this BinaryClassificationCatalog.BinaryClassificationTrainers catalog, AveragedPerceptronTrainer.Options options)
Microsoft.ML.Tests (10)
Scenarios\Api\Estimators\TrainWithInitialPredictor.cs (1)
41var secondTrainer = ml.BinaryClassification.Trainers.AveragedPerceptron("Label", "Features");
Scenarios\Api\TestApi.cs (2)
185var estimator = mlContext.BinaryClassification.Trainers.AveragedPerceptron( 186new AveragedPerceptronTrainer.Options { NumberOfIterations = 2 });
Scenarios\OvaTest.cs (2)
70var ap = mlContext.BinaryClassification.Trainers.AveragedPerceptron( 71new AveragedPerceptronTrainer.Options { Shuffle = true });
TrainerEstimators\CalibratorEstimators.cs (1)
100var binaryTrainer = ML.BinaryClassification.Trainers.AveragedPerceptron();
TrainerEstimators\MetalinearEstimators.cs (2)
26var averagePerceptron = ML.BinaryClassification.Trainers.AveragedPerceptron( 27new AveragedPerceptronTrainer.Options { Shuffle = true });
TrainerEstimators\OnlineLinearTests.cs (2)
42var apTrainer = ML.BinaryClassification.Trainers.AveragedPerceptron( 43new AveragedPerceptronTrainer.Options { LearningRate = 0.5f });