We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0fd321 commit 175182eCopy full SHA for 175182e
openevolve/api.py
@@ -141,6 +141,13 @@ async def _run_evolution_async(
141
# Process evaluator
142
evaluator_path = _prepare_evaluator(evaluator, temp_dir, temp_files)
143
144
+ # Auto-disable cascade evaluation if the evaluator doesn't define stage functions
145
+ if config_obj.evaluator.cascade_evaluation:
146
+ with open(evaluator_path, "r") as f:
147
+ eval_content = f.read()
148
+ if "evaluate_stage1" not in eval_content:
149
+ config_obj.evaluator.cascade_evaluation = False
150
+
151
# Create and run controller
152
controller = OpenEvolve(
153
initial_program_path=program_path,
0 commit comments