-
Notifications
You must be signed in to change notification settings - Fork 5
/
test_plot.py
46 lines (37 loc) · 950 Bytes
/
test_plot.py
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
39
40
41
42
43
44
45
46
from pathlib import Path
from cik_benchmark.predictable_grocer_shocks import (
PredictableGrocerPersistentShockUnivariateTask,
)
from cik_benchmark.tasks.causal_chambers import (
ExplicitPressureFromSpeedTask,
SpeedFromLoadTask,
)
from cik_benchmark.baselines.statsmodels import (
ExponentialSmoothingForecaster,
)
from cik_benchmark.evaluation import evaluate_task
model = ExponentialSmoothingForecaster()
results = evaluate_task(
ExplicitPressureFromSpeedTask,
10,
model,
10,
output_folder=Path("./plots/ExplicitPressureFromSpeedTask/"),
)
print(results)
results = evaluate_task(
SpeedFromLoadTask,
5,
model,
10,
output_folder=Path("./plots/SpeedFromLoadTask/"),
)
print(results)
results = evaluate_task(
PredictableGrocerPersistentShockUnivariateTask,
0,
model,
10,
output_folder=Path("./plots/PredictableGrocerPersistentShockUnivariateTask/"),
)
print(results)