You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Microsoft.ML.StandardTrainers/Standard/Online/AveragedLinear.cs
+15-15
Original file line number
Diff line number
Diff line change
@@ -57,16 +57,16 @@ public abstract class AveragedLinearOptions : OnlineLinearOptions
57
57
/// <see langword="false" /> to update averaged weights on every example.
58
58
/// Default is <see langword="true" />.
59
59
/// </value>
60
-
[Argument(ArgumentType.AtMostOnce,HelpText="Instead of updating averaged weights on every example, only update when loss is nonzero",ShortName="lazy")]
61
-
publicboolDoLazyUpdates=true;
60
+
[Argument(ArgumentType.AtMostOnce,HelpText="Instead of updating averaged weights on every example, only update when loss is nonzero",ShortName="lazy,DoLazyUpdates")]
61
+
publicboolLazyUpdate=true;
62
62
63
63
/// <summary>
64
64
/// The L2 weight for <a href='tmpurl_regularization'>regularization</a>.
// Weights are scaled down by 2 * L2 regularization on each update step, so 0.5 would scale all weights to 0, which is not sensible.
306
-
Contracts.CheckUserArg(0<=options.L2RegularizerWeight&&options.L2RegularizerWeight<0.5,nameof(options.L2RegularizerWeight),"must be in range [0, 0.5)");
306
+
Contracts.CheckUserArg(0<=options.L2Regularization&&options.L2Regularization<0.5,nameof(options.L2Regularization),"must be in range [0, 0.5)");
Copy file name to clipboardExpand all lines: src/Microsoft.ML.StandardTrainers/Standard/Online/LinearSvm.cs
+8-8
Original file line number
Diff line number
Diff line change
@@ -69,8 +69,8 @@ public sealed class Options : OnlineLinearOptions
69
69
/// <summary>
70
70
/// Column to use for example weight.
71
71
/// </summary>
72
-
[Argument(ArgumentType.AtMostOnce,HelpText="Column to use for example weight",ShortName="weight",SortOrder=4,Visibility=ArgumentAttribute.VisibilityType.EntryPointsOnly)]
73
-
publicstringWeightColumn=null;
72
+
[Argument(ArgumentType.AtMostOnce,HelpText="Column to use for example weight",ShortName="weight,WeightColumn",SortOrder=4,Visibility=ArgumentAttribute.VisibilityType.EntryPointsOnly)]
73
+
publicstringExampleWeightColumnName=null;
74
74
}
75
75
76
76
privatesealedclassTrainState:TrainStateBase
@@ -232,20 +232,20 @@ public override LinearBinaryModelParameters CreatePredictor()
232
232
/// <param name="env">The environment to use.</param>
233
233
/// <param name="labelColumn">The name of the label column. </param>
234
234
/// <param name="featureColumn">The name of the feature column.</param>
235
-
/// <param name="weightColumn">The optional name of the weight column.</param>
236
-
/// <param name="numIterations">The number of training iteraitons.</param>
235
+
/// <param name="exampleWeightColumnName">The name of the example weight column (optional).</param>
236
+
/// <param name="numberOfIterations">The number of training iteraitons.</param>
0 commit comments