Skip to content

Commit 3702867

Browse files
daholsteDmitry-A
authored andcommitted
Averaged Perceptron pipeline serialization fix (dotnet#257)
1 parent 09b2ebd commit 3702867

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Microsoft.ML.Auto/TrainerExtensions/BinaryTrainerExtensions.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public PipelineNode CreatePipelineNode(IEnumerable<SweepableParam> sweepParams,
5151
{
5252
additionalProperties = new Dictionary<string, object>()
5353
{
54-
{ "NumberOfIterations", DefaultNumIterations.ToString() }
54+
{ "NumberOfIterations", DefaultNumIterations }
5555
};
5656
}
5757

src/Test/TrainerExtensionsTests.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ public void BuildDefaultAveragedPerceptronPipelineNode()
183183
],
184184
""Properties"": {
185185
""LabelColumn"": ""L"",
186-
""NumberOfIterations"": ""10""
186+
""NumberOfIterations"": 10
187187
}
188188
}";
189189
Util.AssertObjectMatchesJson(expectedJson, pipelineNode);

0 commit comments

Comments
 (0)