Skip to content

Commit

Permalink
Merge pull request #3 from MSD-IRIMAS/aif/add-multivariate
Browse files Browse the repository at this point in the history
[ENH] Removed forecasting and added mts
  • Loading branch information
hadifawaz1999 authored Jul 22, 2024
2 parents 86ec0bd + 4bd98ef commit 80b9ccd
Show file tree
Hide file tree
Showing 13 changed files with 200 additions and 92 deletions.
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ The following parameters can be configured in the `config/config_hydra.yaml` fil

- **General Parameters:**
- `output_dir`: Directory where output plots and MP4s will be saved (default: `./`).
- `dataset`: Name of the dataset to use (default: `ItalyPowerDemand`) loaded from aeon-toolkit, see the [classification dataset list](https://github.com/aeon-toolkit/aeon/blob/main/aeon/datasets/tsc_datasets.py), the [regression datasets list](https://github.com/aeon-toolkit/aeon/blob/main/aeon/datasets/tser_datasets.py) and the [forecasting datasets lists](https://github.com/aeon-toolkit/aeon/blob/main/aeon/datasets/tsf_datasets.py).
- `dataset`: Name of the dataset to use (default: `ItalyPowerDemand`) loaded from aeon-toolkit, see the [classification dataset list](https://github.com/aeon-toolkit/aeon/blob/main/aeon/datasets/tsc_datasets.py) and the [regression datasets list](https://github.com/aeon-toolkit/aeon/blob/main/aeon/datasets/tser_datasets.py), works with both univariate and multivariate time series datasets.
- `split`: Dataset split (default: `None`).
- `znormalize`: Whether to Z-normalize the time series (default: `True`).
- `class_x`: Class label for the first time series (default: `0`).
Expand Down Expand Up @@ -74,10 +74,15 @@ The following parameters can be configured in the `config/config_hydra.yaml` fil
## Example
Using DTW on ItalyPowerDemand dataset
Using DTW on [ECGFiveDays](http://timeseriesclassification.com/description.php?Dataset=ECGFiveDays) univariate dataset
- In video format [download-here](exps/dtw-vis/ItalyPowerDemand/dtw.mp4): ![dtw-italy](exps/dtw-vis/ItalyPowerDemand/dtw.gif)
- In pdf format: [dtw-italy-pdf](exps/dtw-vis/ItalyPowerDemand/dtw.pdf)
- In video format [download-here](exps/dtw-vis/ECGFiveDays/dtw.mp4): ![dtw-italy](exps/dtw-vis/ECGFiveDays/dtw.gif)
- In pdf format: [dtw-italy-pdf](exps/dtw-vis/ECGFiveDays/dtw.pdf)
Using DTW on [ERing](http://timeseriesclassification.com/description.php?Dataset=ERing) multivariate dataset
- In video format [download-here](exps/dtw-vis/ERing/dtw.mp4): ![dtw-italy](exps/dtw-vis/ERing/dtw.gif)
- In pdf format: [dtw-italy-pdf](exps/dtw-vis/ERing/dtw.pdf)
## Citation
Expand All @@ -96,5 +101,5 @@ If you use this code in your research, please cite this repository:
## Acknowledgments
We would like to thank the authors of the UCR, UEA and Monash archives for making the Time Series Classification/Regression/Forecasting datasets publicly available.
We would like to thank the authors of the UCR, UEA and Monash archives for making the Time Series Classification/Regression datasets publicly available.
We would also like to thank the Aeon time series machine learning python toolkit for their fast implementation of elastic similarity measures.
4 changes: 2 additions & 2 deletions config/config_hydra.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ hydra :
dir : exps/${hydra.job.name}

output_dir: './' # output directory
dataset : "ItalyPowerDemand" # dataset name to load from aeon
dataset : "ERing" # dataset name to load from aeon
split: Null # either use train/test or both splits
znormalize: True # znormalize each time series channel independent

Expand All @@ -22,7 +22,7 @@ metric_params : # dictionary with measure parameters
w : null # for the minkowski distance
itakura_max_slope: null # for all warping based distances
descriptor : "identity" # for shape_dtw
reach : 5 # for shape_dtw
reach : 15 # for shape_dtw
g : 0.05 # for wdtw
epsilon : 1.0 # for lcss, edr
g_arr : null # for erp
Expand Down
Loading

0 comments on commit 80b9ccd

Please sign in to comment.