Skip to content

Sweep Range of L2RegularizerWeight in AveragedPerceptron #579

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 25, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public abstract class AveragedLinearArguments : OnlineLinearArguments

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

[Argument(ArgumentType.AtMostOnce, HelpText = "Extra weight given to more recent updates", ShortName = "rg")]
Expand Down
4 changes: 2 additions & 2 deletions src/Microsoft.ML/CSharpApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4181,7 +4181,7 @@ public sealed partial class AveragedPerceptronBinaryClassifier : Microsoft.ML.Ru
/// <summary>
/// L2 Regularization Weight
/// </summary>
[TlcModule.SweepableFloatParamAttribute("L2RegularizerWeight", 0f, 0.5f)]
[TlcModule.SweepableFloatParamAttribute("L2RegularizerWeight", 0f, 0.4f)]
public float L2RegularizerWeight { get; set; }

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

/// <summary>
Expand Down
4 changes: 2 additions & 2 deletions test/BaselineOutput/Common/EntryPoints/core_manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4001,7 +4001,7 @@
"SweepRange": {
"RangeType": "Float",
"Min": 0.0,
"Max": 0.5
"Max": 0.4
}
},
{
Expand Down Expand Up @@ -13878,7 +13878,7 @@
"SweepRange": {
"RangeType": "Float",
"Min": 0.0,
"Max": 0.5
"Max": 0.4
}
},
{
Expand Down