Skip to content

Commit 3258e37

Browse files
authored
Fix warning for L2 in SDCA
1 parent 24d939a commit 3258e37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Microsoft.ML.StandardLearners/Standard/LinearClassificationTrainer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ internal virtual void Check(IHostEnvironment env)
209209
{
210210
ch.Warning("The specified l2Const = {0} is too small. SDCA optimizes the dual objective function. " +
211211
"The dual formulation is only valid with a positive L2 regularization. Also, an l2Const less than {1} " +
212-
"could drastically slow down the convergence. So using l2Const = {1} instead.", L2Const);
212+
"could drastically slow down the convergence. So using l2Const = {1} instead.", L2Const, L2LowerBound);
213213

214214
L2Const = L2LowerBound;
215215
ch.Done();
@@ -1752,4 +1752,4 @@ public static CommonOutputs.BinaryClassificationOutput TrainBinary(IHostEnvironm
17521752

17531753
}
17541754
}
1755-
}
1755+
}

0 commit comments

Comments
 (0)