diff --git a/Tunny/Handler/OptimizeLoop.cs b/Tunny/Handler/OptimizeLoop.cs index 7e114f7..5ed5622 100644 --- a/Tunny/Handler/OptimizeLoop.cs +++ b/Tunny/Handler/OptimizeLoop.cs @@ -115,7 +115,7 @@ private static int ReportPruner(dynamic optunaTrial, int step, Pruner pruner) else { optunaTrial.report(report.Value, step); - if (string.IsNullOrEmpty(report.Attribute)) + if (!string.IsNullOrEmpty(report.Attribute)) { optunaTrial.set_user_attr("intermediate_value_step" + step, report.Attribute); }