When changing AveragedPerceptron's default number of iterations from 1 to 10 in #5258, we missed one.
The main interface continues to default to 1 iteration:

Previous issues:
Code location
Default is set here:
|
int numberOfIterations = Options.AveragedDefault.NumberOfIterations) |
Which originates from:
|
internal class AveragedDefault : OnlineLinearOptions.OnlineDefault |
|
{ |
|
public const float LearningRate = 1; |
|
public const bool DecreaseLearningRate = false; |
|
public const float L2Regularization = 0; |
|
} |
Which in-turn inherits its value from:
|
internal class OnlineDefault |
|
{ |
|
public const int NumberOfIterations = 1; |
|
} |
Possible fix
We may want to make a new class within AveragedPerceptron to hold its overrides:
internal class AveragedPerceptronDefault : AveragedDefault
{
public const float NumberOfIterations = 10;
}
/cc @michaelgsharp
When changing AveragedPerceptron's default number of iterations from 1 to 10 in #5258, we missed one.
The main interface continues to default to 1 iteration:

Previous issues:
Code location
Default is set here:
machinelearning/src/Microsoft.ML.StandardTrainers/Standard/Online/AveragedPerceptron.cs
Line 172 in 5dbfd8a
Which originates from:
machinelearning/src/Microsoft.ML.StandardTrainers/Standard/Online/AveragedLinear.cs
Lines 108 to 113 in 5dbfd8a
Which in-turn inherits its value from:
machinelearning/src/Microsoft.ML.StandardTrainers/Standard/Online/OnlineLinear.cs
Lines 62 to 65 in 5dbfd8a
Possible fix
We may want to make a new class within AveragedPerceptron to hold its overrides:
/cc @michaelgsharp