Skip to content

Commit dc42fee

Browse files
committed
String interpolation
1 parent 3258e37 commit dc42fee

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,9 @@ internal virtual void Check(IHostEnvironment env)
207207
{
208208
using (var ch = env.Start("SDCA arguments checking"))
209209
{
210-
ch.Warning("The specified l2Const = {0} is too small. SDCA optimizes the dual objective function. " +
211-
"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, L2LowerBound);
210+
ch.Warning($"The specified {nameof(L2Const)} = {L2Const} is too small. SDCA optimizes the dual objective function. " +
211+
$"The dual formulation is only valid with a positive L2 regularization. Also, an {nameof(L2Const)} less than {L2LowerBound} " +
212+
$"could drastically slow down the convergence. So using {nameof(L2Const)} = {L2LowerBound} instead.");
213213

214214
L2Const = L2LowerBound;
215215
ch.Done();

0 commit comments

Comments
 (0)