We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f193944 commit 08f04adCopy full SHA for 08f04ad
examples/README.md
@@ -58,6 +58,15 @@ def evaluate(program_path: str) -> Dict:
58
'combined_score': 0.0, # Always return combined_score, even on error
59
'error': str(e)
60
}
61
+
62
+# Or use EvaluationResult for artifacts support:
63
+from openevolve.evaluation_result import EvaluationResult
64
65
+def evaluate(program_path: str) -> EvaluationResult:
66
+ return EvaluationResult(
67
+ metrics={'combined_score': 0.8, 'accuracy': 0.9},
68
+ artifacts={'debug_info': 'useful debugging data'}
69
+ )
70
```
71
72
**Critical Requirements:**
0 commit comments