In this turorial, we give two examples with UEA & UCR Time Series Classification and Regression Repository.
Here we take the Heartbeat
classification task from UEA & UCR Time Series Classification Repository as an example.
- Download the dataset
cd PhysioPro
mkdir data
wget http://www.timeseriesclassification.com/aeon-toolkit/Archives/Multivariate2018_ts.zip -P data
unzip data/Multivariate2018_ts.zip -d data/
rm data/Multivariate2018_ts.zip
- Run
Heartbeat
classification task withTSRNN
model
# create the output directory
mkdir -p outputs/Multivariate_ts/Heartbeat
# run the train task
python -m physiopro.entry.train docs/configs/rnn_classification.yml
# tensorboard
tensorboard --logdir outputs/
The results will be saved to outputs/Multivariate2018_ts/Heartbeat
directory.
Here we take the BeijingPM25Quality
dataset from UEA & UCR Time Series Extrinsic Regression Dataset as an example.
- Download the dataset
mkdir -p data/Monash_UEA_UCR_Regression_Archive/BeijingPM25Quality
wget https://zenodo.org/record/3902671/files/BeijingPM25Quality_TEST.ts?download=1 -O data/Monash_UEA_UCR_Regression_Archive/BeijingPM25Quality/BeijingPM25Quality_TEST.ts
wget https://zenodo.org/record/3902671/files/BeijingPM25Quality_TRAIN.ts?download=1 -O data/Monash_UEA_UCR_Regression_Archive/BeijingPM25Quality/BeijingPM25Quality_TRAIN.ts
- Run
BeijingPM25Quality
regression task withTSRNN
model
# create the output directory
mkdir -p outputs/Monash_UEA_UCR_Regression_Archive/BeijingPM25Quality
# run the train task with RNN
python -m physiopro.entry.train docs/configs/rnn_regression.yml
# or with TCN
# python -m physiopro.entry.train docs/configs/tcn_regression.yml
# # or with transformer
# python -m physiopro.entry.train docs/configs/transformer_regression.yml
The results will be saved to outputs/Monash_UEA_UCR_Regression_Archive/BeijingPM25Quality
directory.