Skip to content

Commit 9724773

Browse files
committed
phase 1 -1000 grid results
1 parent 34e8496 commit 9724773

6 files changed

Lines changed: 803 additions & 4 deletions

File tree

models/config.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def estimate_runtime(self, n_cores: int = 32) -> str:
190190
#FIXME: These configs are arbitraty and should be finalized before running experiments.
191191

192192
PHASE1_CONFIG = Config(
193-
grid_size=100,
193+
grid_size=1000,
194194
n_prey_death=20,
195195
prey_birth=0.2,
196196
prey_death_range=(0.0, 0.20),
@@ -209,9 +209,9 @@ def estimate_runtime(self, n_cores: int = 32) -> str:
209209
PHASE2_CONFIG = Config(
210210
grid_size=100,
211211
n_prey_birth=10,
212-
n_replicates=10,
213-
warmup_steps=100,
214-
measurement_steps=1000,
212+
n_replicates=30,
213+
warmup_steps=300,
214+
measurement_steps=500,
215215
with_evolution=True,
216216
evolve_sd=0.10,
217217
collect_pcf=False, # Not needed for SOC analysis

phase1_18676818/experiments.log

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
2026-01-25 20:40:38,449 [INFO] ============================================================
2+
2026-01-25 20:40:38,450 [INFO] PREDATOR-PREY HYDRA EFFECT EXPERIMENTS
3+
2026-01-25 20:40:38,450 [INFO] ============================================================
4+
2026-01-25 20:40:38,450 [INFO] Phases: [1]
5+
2026-01-25 20:40:38,450 [INFO] Output: results/phase1_18676818
6+
2026-01-25 20:40:38,450 [INFO] Cores: 32
7+
2026-01-25 20:40:38,450 [INFO] Numba: ENABLED
8+
2026-01-25 20:40:38,450 [INFO]
9+
2026-01-25 20:40:38,450 [INFO] ============================================================
10+
2026-01-25 20:40:38,450 [INFO] PHASE 1
11+
2026-01-25 20:40:38,450 [INFO] ============================================================
12+
2026-01-25 20:40:38,450 [INFO] Estimated: 9,000 sims, ~5.3h on 32 cores (~170 core-hours)
13+
2026-01-25 20:40:38,450 [INFO] Dry run - skipping execution
14+
2026-01-25 20:40:38,450 [INFO]
15+
2026-01-25 20:40:38,450 [INFO] ============================================================
16+
2026-01-25 20:40:38,450 [INFO] EXPERIMENTS COMPLETE
17+
2026-01-25 20:40:38,450 [INFO] ============================================================
18+
2026-01-25 20:40:39,614 [INFO] ============================================================
19+
2026-01-25 20:40:39,615 [INFO] PREDATOR-PREY HYDRA EFFECT EXPERIMENTS
20+
2026-01-25 20:40:39,615 [INFO] ============================================================
21+
2026-01-25 20:40:39,615 [INFO] Phases: [1]
22+
2026-01-25 20:40:39,615 [INFO] Output: results/phase1_18676818
23+
2026-01-25 20:40:39,615 [INFO] Cores: 32
24+
2026-01-25 20:40:39,615 [INFO] Numba: ENABLED
25+
2026-01-25 20:40:39,615 [INFO]
26+
2026-01-25 20:40:39,615 [INFO] ============================================================
27+
2026-01-25 20:40:39,615 [INFO] PHASE 1
28+
2026-01-25 20:40:39,615 [INFO] ============================================================
29+
2026-01-25 20:40:39,615 [INFO] Estimated: 9,000 sims, ~5.3h on 32 cores (~170 core-hours)
30+
2026-01-25 20:40:45,417 [INFO] Phase 1: 600 simulations
31+
2026-01-25 20:40:45,417 [INFO] Grid: 20 prey_death values × 30 reps (prey_birth=0.2)
32+
2026-01-25 20:47:56,961 [INFO] Phase 1 complete. Results: results/phase1_18676818/phase1_results.jsonl
33+
2026-01-25 20:47:57,002 [INFO] Phase 1 runtime: 7.3 minutes
34+
2026-01-25 20:47:57,002 [INFO]
35+
2026-01-25 20:47:57,002 [INFO] ============================================================
36+
2026-01-25 20:47:57,002 [INFO] EXPERIMENTS COMPLETE
37+
2026-01-25 20:47:57,002 [INFO] ============================================================

phase1_18676818/phase1_config.json

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
{
2+
"grid_size": 1000,
3+
"densities": [
4+
0.3,
5+
0.15
6+
],
7+
"grid_sizes": [
8+
100,
9+
200,
10+
500,
11+
1000
12+
],
13+
"prey_birth": 0.2,
14+
"prey_death": 0.05,
15+
"predator_birth": 0.8,
16+
"predator_death": 0.05,
17+
"critical_prey_birth": 0.22,
18+
"critical_prey_death": 0.04,
19+
"prey_birth_range": [
20+
0.1,
21+
0.35
22+
],
23+
"prey_death_range": [
24+
0.0,
25+
0.2
26+
],
27+
"n_prey_birth": 15,
28+
"n_prey_death": 20,
29+
"predator_birth_values": [
30+
0.15,
31+
0.2,
32+
0.25,
33+
0.3
34+
],
35+
"predator_death_values": [
36+
0.05,
37+
0.1,
38+
0.15,
39+
0.2
40+
],
41+
"prey_death_offsets": [
42+
-0.02,
43+
-0.01,
44+
0.0,
45+
0.01,
46+
0.02
47+
],
48+
"n_replicates": 30,
49+
"warmup_steps": 300,
50+
"measurement_steps": 500,
51+
"with_evolution": false,
52+
"evolve_sd": 0.1,
53+
"evolve_min": 0.001,
54+
"evolve_max": 0.1,
55+
"sensitivity_sd_values": [
56+
0.02,
57+
0.05,
58+
0.1,
59+
0.15,
60+
0.2
61+
],
62+
"synchronous": false,
63+
"directed_hunting": false,
64+
"directed_hunting_values": [
65+
false,
66+
true
67+
],
68+
"save_timeseries": false,
69+
"timeseries_subsample": 10,
70+
"collect_pcf": true,
71+
"pcf_sample_rate": 0.2,
72+
"pcf_max_distance": 20.0,
73+
"pcf_n_bins": 20,
74+
"min_density_for_analysis": 0.002,
75+
"perturbation_magnitude": 0.1,
76+
"n_jobs": 32
77+
}
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
{
2+
"phase": 1,
3+
"description": "Parameter sweep for critical point",
4+
"n_sims": 600,
5+
"timestamp": "2026-01-25 20:47:56",
6+
"config": {
7+
"grid_size": 1000,
8+
"densities": [
9+
0.3,
10+
0.15
11+
],
12+
"grid_sizes": [
13+
100,
14+
200,
15+
500,
16+
1000
17+
],
18+
"prey_birth": 0.2,
19+
"prey_death": 0.05,
20+
"predator_birth": 0.8,
21+
"predator_death": 0.05,
22+
"critical_prey_birth": 0.22,
23+
"critical_prey_death": 0.04,
24+
"prey_birth_range": [
25+
0.1,
26+
0.35
27+
],
28+
"prey_death_range": [
29+
0.0,
30+
0.2
31+
],
32+
"n_prey_birth": 15,
33+
"n_prey_death": 20,
34+
"predator_birth_values": [
35+
0.15,
36+
0.2,
37+
0.25,
38+
0.3
39+
],
40+
"predator_death_values": [
41+
0.05,
42+
0.1,
43+
0.15,
44+
0.2
45+
],
46+
"prey_death_offsets": [
47+
-0.02,
48+
-0.01,
49+
0.0,
50+
0.01,
51+
0.02
52+
],
53+
"n_replicates": 30,
54+
"warmup_steps": 300,
55+
"measurement_steps": 500,
56+
"with_evolution": false,
57+
"evolve_sd": 0.1,
58+
"evolve_min": 0.001,
59+
"evolve_max": 0.1,
60+
"sensitivity_sd_values": [
61+
0.02,
62+
0.05,
63+
0.1,
64+
0.15,
65+
0.2
66+
],
67+
"synchronous": false,
68+
"directed_hunting": false,
69+
"directed_hunting_values": [
70+
false,
71+
true
72+
],
73+
"save_timeseries": false,
74+
"timeseries_subsample": 10,
75+
"collect_pcf": true,
76+
"pcf_sample_rate": 0.2,
77+
"pcf_max_distance": 20.0,
78+
"pcf_n_bins": 20,
79+
"min_density_for_analysis": 0.002,
80+
"perturbation_magnitude": 0.1,
81+
"n_jobs": 32
82+
}
83+
}

phase1_18676818/phase1_results.jsonl

Lines changed: 600 additions & 0 deletions
Large diffs are not rendered by default.

scripts/experiments.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,8 @@ def run_phase2(cfg: Config, output_dir: Path, logger: logging.Logger) -> List[Di
396396
397397
NOTE: Test is currently start evo from different intial prey_death values (?)
398398
If SOC holds, then all runs converge to the same final prey_death near critical point.
399+
400+
FIXME: This run script needs to be adjusted
399401
"""
400402
from joblib import Parallel, delayed
401403

0 commit comments

Comments
 (0)