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
prediction_log =forecast(model, steps_ahead) # arguments are the output of the fitted model and number of steps ahead the user wants to forecast
76
+
StateSpaceLearning.fit!(model)
77
+
prediction_log =StateSpaceLearning.forecast(model, steps_ahead) # arguments are the output of the fitted model and number of steps ahead the user wants to forecast
The paper has two experiments (results for the M4 competition and a simulation study). To reproduce each experiment follow the instructions below:
237
+
To reproduce the paper results, run the following experiments:
238
238
239
-
### M4 Experiment
239
+
### M4 Competition Test
240
240
241
-
To reproduce M4 paper results you can clone the repository and run the following commands on terminal:
241
+
Evaluates SSL and SS (StateSpaceModels) benchmark models on M4 competition dataset across all granularities (Monthly, Quarterly, Daily, Hourly, Weekly, Yearly).
242
242
243
243
```shell
244
244
julia paper_tests/m4_test/m4_test.jl
245
-
python paper_tests/m4_test/m4_test.py
246
245
```
247
246
248
-
The results for SSL model in terms of MASE and sMAPE for all 48000 series will be stored in folder "paper_tests/m4_test/results_SSL". The average results of MASE, sMAPE and OWA will be saved in file "paper_tests/m4_test/metric_results/SSL_METRICS_RESULTS.csv".
247
+
The script:
248
+
- Downloads M4 competition datasets directly from GitHub
249
+
- Runs SSL models with various configurations (with/without outliers, different selection methods, and alpha values)
250
+
- Runs SS (StateSpaceModels) benchmark models using PyCall
251
+
- Calculates metrics (MASE, sMAPE, OWA, CRPS) for all models
252
+
253
+
Results are saved in:
254
+
-`paper_tests/m4_test/results_SSL/` - SSL model results by granularity
255
+
-`paper_tests/m4_test/metrics_results/` - Summary metrics and benchmark results
256
+
257
+
Note: Requires PyCall and Python packages (`statsmodels`, `numpy`) for the SS benchmark evaluation.
249
258
250
-
The results for SS model in terms of MASE and sMAPE for all 48000 series will be stored in folder "paper_tests/m4_test/results_SS". The average results of MASE, sMAPE and OWA will be saved in file "paper_tests/m4_test/metric_results/SS_METRICS_RESULTS.csv".
259
+
### Simulation Parameter Study
251
260
252
-
### Simulation Experiment
261
+
Compares SSL vs Kalman filter on simulated data.
253
262
254
-
To reproduce the simulation results you can clone the repository and run the following commands on terminal:
263
+
```shell
264
+
julia paper_tests/simulation_param/simulation.jl [repetitions] [sample_sizes]
265
+
```
255
266
267
+
Example:
256
268
```shell
257
-
julia paper_tests/simulation_test/simulation.jl 0
269
+
julia paper_tests/simulation_param/simulation.jl 100 60,120,240
258
270
```
259
271
260
-
As this test takes a long time, you may want to run it in parallel, for that you can change the last argument to be number of workers to use in the parallelization:
272
+
Results are saved in `paper_tests/simulation_param/ssl_vs_kalman_paired_tests.csv`.
273
+
274
+
### Simulation Test
275
+
276
+
Large-scale simulation comparing SSL, SS, and other methods.
277
+
278
+
```shell
279
+
julia paper_tests/simulation_test/simulation.jl [num_workers]
280
+
```
261
281
282
+
Example (with 4 parallel workers):
262
283
```shell
263
-
julia paper_tests/simulation_test/simulation.jl 3
284
+
julia paper_tests/simulation_test/simulation.jl 4
264
285
```
265
286
266
-
The results will be saved in two separated files: "paper_tests/simulation_test/results_metrics/metrics_confusion_matrix.csv" and "paper_tests/simulation_test/results_metrics/metrics_bias_mse.csv"
287
+
Results are saved in `paper_tests/simulation_test/results_simulation/` and `paper_tests/simulation_test/results_metrics/`.
0 commit comments