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