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: README.md
+23Lines changed: 23 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -377,6 +377,29 @@ database:
377
377
correctness: 15 # 15 bins for correctness (from YOUR evaluator)
378
378
```
379
379
380
+
**CRITICAL: Return Raw Values, Not Bin Indices**: For custom feature dimensions, your evaluator must return **raw continuous values**, not pre-computed bin indices. OpenEvolve handles all scaling and binning internally.
381
+
382
+
```python
383
+
# ✅ CORRECT: Return raw values
384
+
return {
385
+
"combined_score": 0.85,
386
+
"prompt_length": 1247, # Actual character count
387
+
"execution_time": 0.234 # Raw time in seconds
388
+
}
389
+
390
+
# ❌ WRONG: Don't return bin indices
391
+
return {
392
+
"combined_score": 0.85,
393
+
"prompt_length": 7, # Pre-computed bin index
394
+
"execution_time": 3 # Pre-computed bin index
395
+
}
396
+
```
397
+
398
+
OpenEvolve automatically handles:
399
+
- Min-max scaling to [0,1] range
400
+
- Binning into the specified number of bins
401
+
- Adaptive scaling as the value range expands during evolution
402
+
380
403
**Important**: OpenEvolve will raise an error if a specified feature is not found in the evaluator's metrics. This ensures your configuration is correct. The error message will show available metrics to help you fix the configuration.
381
404
382
405
See the [Configuration Guide](configs/default_config.yaml) for a full list of options.
0 commit comments