You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/mlnet/Utilities/ProgressHandlers.cs
+6-3
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,8 @@ public void Report(RunDetail<RegressionMetrics> iterationResult)
39
39
{
40
40
iterationIndex++;
41
41
UpdateBestResult(iterationResult);
42
-
progressBar.Message=$"Best {this.optimizationMetric}: {GetScore(bestResult):F4}, Best Algorithm: {bestResult?.TrainerName}, Last Algorithm: {iterationResult?.TrainerName}";
42
+
if(progressBar!=null)
43
+
progressBar.Message=$"Best {this.optimizationMetric}: {GetScore(bestResult):F4}, Best Algorithm: {bestResult?.TrainerName}, Last Algorithm: {iterationResult?.TrainerName}";
@@ -78,7 +79,8 @@ public void Report(RunDetail<BinaryClassificationMetrics> iterationResult)
78
79
{
79
80
iterationIndex++;
80
81
UpdateBestResult(iterationResult);
81
-
progressBar.Message=$"Best {this.optimizationMetric}: {GetScore(bestResult):F4}, Best Algorithm: {bestResult?.TrainerName}, Last Algorithm: {iterationResult?.TrainerName}";
82
+
if(progressBar!=null)
83
+
progressBar.Message=$"Best {this.optimizationMetric}: {GetScore(bestResult):F4}, Best Algorithm: {bestResult?.TrainerName}, Last Algorithm: {iterationResult?.TrainerName}";
@@ -117,7 +119,8 @@ public void Report(RunDetail<MulticlassClassificationMetrics> iterationResult)
117
119
{
118
120
iterationIndex++;
119
121
UpdateBestResult(iterationResult);
120
-
progressBar.Message=$"Best {this.optimizationMetric}: {GetScore(bestResult):F4}, Best Algorithm: {bestResult?.TrainerName}, Last Algorithm: {iterationResult?.TrainerName}";
122
+
if(progressBar!=null)
123
+
progressBar.Message=$"Best {this.optimizationMetric}: {GetScore(bestResult):F4}, Best Algorithm: {bestResult?.TrainerName}, Last Algorithm: {iterationResult?.TrainerName}";
0 commit comments