-
Notifications
You must be signed in to change notification settings - Fork 976
Expand file tree
/
Copy pathearly_stopping_example.yaml
More file actions
38 lines (31 loc) · 969 Bytes
/
early_stopping_example.yaml
File metadata and controls
38 lines (31 loc) · 969 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# OpenEvolve Configuration with Early Stopping Example
# This configuration demonstrates how to use the early stopping feature
# Basic settings
max_iterations: 1000
checkpoint_interval: 50
log_level: "INFO"
# Early stopping configuration - stops evolution if no improvement for 30 iterations
early_stopping_patience: 30 # Stop after 30 iterations without improvement
convergence_threshold: 0.01 # Minimum improvement of 0.01 required to reset patience
early_stopping_metric: "combined_score" # Track the combined_score metric
# LLM configuration
llm:
models:
- name: "gpt-4o-mini"
weight: 1.0
api_base: "https://api.openai.com/v1"
temperature: 0.7
max_tokens: 4096
# Database configuration
database:
population_size: 50
num_islands: 3
migration_interval: 20
# Evaluation settings
evaluator:
timeout: 60
max_retries: 2
parallel_evaluations: 2
# Evolution settings
diff_based_evolution: true
max_code_length: 8000