Skip to content

Commit 7fea0af

Browse files
SolyarATomFinley
authored andcommitted
Sweep Range of L2RegularizerWeight in AveragedPerceptron (#579)
* Changed range of L2RegularizerWeight parameter in AveragedPerceptron
1 parent 5e08fa1 commit 7fea0af

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/Microsoft.ML.StandardLearners/Standard/Online/AveragedLinear.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public abstract class AveragedLinearArguments : OnlineLinearArguments
3636

3737
[Argument(ArgumentType.AtMostOnce, HelpText = "L2 Regularization Weight", ShortName = "reg", SortOrder = 50)]
3838
[TGUI(Label = "L2 Regularization Weight")]
39-
[TlcModule.SweepableFloatParam("L2RegularizerWeight", 0.0f, 0.5f)]
39+
[TlcModule.SweepableFloatParam("L2RegularizerWeight", 0.0f, 0.4f)]
4040
public Float L2RegularizerWeight = 0;
4141

4242
[Argument(ArgumentType.AtMostOnce, HelpText = "Extra weight given to more recent updates", ShortName = "rg")]

src/Microsoft.ML/CSharpApi.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4181,7 +4181,7 @@ public sealed partial class AveragedPerceptronBinaryClassifier : Microsoft.ML.Ru
41814181
/// <summary>
41824182
/// L2 Regularization Weight
41834183
/// </summary>
4184-
[TlcModule.SweepableFloatParamAttribute("L2RegularizerWeight", 0f, 0.5f)]
4184+
[TlcModule.SweepableFloatParamAttribute("L2RegularizerWeight", 0f, 0.4f)]
41854185
public float L2RegularizerWeight { get; set; }
41864186

41874187
/// <summary>
@@ -8710,7 +8710,7 @@ public sealed partial class OnlineGradientDescentRegressor : Microsoft.ML.Runtim
87108710
/// <summary>
87118711
/// L2 Regularization Weight
87128712
/// </summary>
8713-
[TlcModule.SweepableFloatParamAttribute("L2RegularizerWeight", 0f, 0.5f)]
8713+
[TlcModule.SweepableFloatParamAttribute("L2RegularizerWeight", 0f, 0.4f)]
87148714
public float L2RegularizerWeight { get; set; }
87158715

87168716
/// <summary>

test/BaselineOutput/Common/EntryPoints/core_manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4001,7 +4001,7 @@
40014001
"SweepRange": {
40024002
"RangeType": "Float",
40034003
"Min": 0.0,
4004-
"Max": 0.5
4004+
"Max": 0.4
40054005
}
40064006
},
40074007
{
@@ -13878,7 +13878,7 @@
1387813878
"SweepRange": {
1387913879
"RangeType": "Float",
1388013880
"Min": 0.0,
13881-
"Max": 0.5
13881+
"Max": 0.4
1388213882
}
1388313883
},
1388413884
{

0 commit comments

Comments
 (0)