File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -263,7 +263,7 @@ def _format_evolution_history(
263263
264264 # Determine outcome based on comparison with parent (only numeric metrics)
265265 parent_metrics = program .get ("metadata" , {}).get ("parent_metrics" , {})
266- outcome = "Mixed results"
266+ outcome = self . template_manager . get_fragment ( "attempt_mixed_metrics" )
267267
268268 # Safely compare only numeric metrics
269269 program_metrics = program .get ("metrics" , {})
@@ -290,9 +290,9 @@ def _format_evolution_history(
290290
291291 # Determine outcome based on numeric comparisons
292292 if numeric_comparisons_improved and all (numeric_comparisons_improved ):
293- outcome = "Improvement in all metrics"
293+ outcome = self . template_manager . get_fragment ( "attempt_all_metrics_improved" )
294294 elif numeric_comparisons_regressed and all (numeric_comparisons_regressed ):
295- outcome = "Regression in all metrics"
295+ outcome = self . template_manager . get_fragment ( "attempt_all_metrics_regressed" )
296296
297297 previous_attempts_str += (
298298 previous_attempt_template .format (
Original file line number Diff line number Diff line change 1717 "default_improvement" : " Focus on improving the fitness score while exploring diverse solutions" ,
1818 "no_feature_coordinates" : " No feature coordinates" ,
1919 "artifact_title" : " Last Execution Output" ,
20- "diverse_programs_title" : " Diverse Programs"
20+ "diverse_programs_title" : " Diverse Programs" ,
21+ "attempt_all_metrics_improved" : " Improvement in all metrics" ,
22+ "attempt_all_metrics_regressed" : " Regression in all metrics" ,
23+ "attempt_mixed_metrics" : " Mixed results"
2124}
You can’t perform that action at this time.
0 commit comments