Skip to content

Commit 92fff6b

Browse files
evals
1 parent bc41a49 commit 92fff6b

8 files changed

Lines changed: 3454 additions & 0 deletions

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,3 +348,7 @@ notebooks/spot_nystrom_ackley_100d.ipynb
348348
notebooks/spot_nystrom_demo.ipynb
349349
.vscode/settings.json
350350
.vscode/settings.json
351+
/notebooks/dagstuhl/runs_OLD
352+
/notebooks/dagstuhl/runs
353+
/notebooks/dagstuhl/evaluation_spot_files
354+
notebooks/dagstuhl/evaluation_spot.html
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Evaluation spotpython runs
2+
```{python}
3+
import json
4+
import numpy as np
5+
6+
# Load results from spot_rosen.json
7+
with open("spot_rosen.json", "r") as f:
8+
data = json.load(f)
9+
10+
# Extract all "evaluations" values
11+
evals = [
12+
iteration["sampled_locations"][0]["evaluations"]
13+
for iteration in data["search_iterations"]
14+
]
15+
16+
# Compute mean and standard deviation
17+
mean_eval = np.mean(evals)
18+
std_eval = np.std(evals)
19+
20+
print(f"Mean of evaluations: {mean_eval:.6f}")
21+
print(f"Standard deviation of evaluations: {std_eval:.6f}")
22+
```
23+
24+
25+
```{python}
26+
import json
27+
import numpy as np
28+
29+
# Load results from spot_rosen.json
30+
with open("spot_michalewicz.json", "r") as f:
31+
data = json.load(f)
32+
33+
# Extract all "evaluations" values
34+
evals = [
35+
iteration["sampled_locations"][0]["evaluations"]
36+
for iteration in data["search_iterations"]
37+
]
38+
39+
# Compute mean and standard deviation
40+
mean_eval = np.mean(evals)
41+
std_eval = np.std(evals)
42+
43+
print(f"Mean of evaluations: {mean_eval:.6f}")
44+
print(f"Standard deviation of evaluations: {std_eval:.6f}")
45+
```

0 commit comments

Comments
 (0)