diff --git a/.gitignore b/.gitignore index 27ab49f2..334b4541 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1 @@ -*.npy notebooks/test.ipynb \ No newline at end of file diff --git a/README.md b/README.md index 5ac8834f..3a4e9cda 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,15 @@ python main.py --multirun "dataset_name=[Handwriting]" "models=LSTM_FCN" Model name can be anything that is available in the `codes/models` directory, given corresponding configs are also available. Similarly, other parameters can also be specified in the terminal, and passed as arguments. + +## Docker +To run the code in a docker container, run the following command in the terminal, in the root directory of the repository: +```bash +docker build -t ts_cl . +docker run -it ts_cl +``` +This will build a docker image named `ts_cl`, and run a container with the image. The code can be run in the container as described above. + ## Mlruns All the runs are stored in the `mlruns` directory. To visualize the runs, run the following command in the terminal, in the root directory of the repository: ```bash @@ -51,7 +60,7 @@ This repository uses the datasets from the [UEA & UCR Time Series Classification We use the classification models available in [tsai library](https://timeseriesai.github.io/tsai/). Models can be added to this repository by adding the corresponding config file in the `config` directory, and the corresponding model file in the `codes/models` directory. ## Results -You can find the results in the following table: +You can find the results in the following table. Each cell contains the accuracy of the corresponding model on the corresponding dataset. The results are obtained by running the models with the optimal hyperparameters found by optuna. | Dataset | GRU_FCN | LSTM | LSTM_FCN | diff --git a/data/UCR/ECG200/X.npy b/data/UCR/ECG200/X.npy new file mode 100644 index 00000000..5ac1c27f Binary files /dev/null and b/data/UCR/ECG200/X.npy differ diff --git a/data/UCR/ECG200/X_train.npy b/data/UCR/ECG200/X_train.npy new file mode 100644 index 00000000..d7e61199 Binary files /dev/null and b/data/UCR/ECG200/X_train.npy differ diff --git a/data/UCR/ECG200/X_valid.npy b/data/UCR/ECG200/X_valid.npy new file mode 100644 index 00000000..3fa1ba82 Binary files /dev/null and b/data/UCR/ECG200/X_valid.npy differ diff --git a/data/UCR/ECG200/y.npy b/data/UCR/ECG200/y.npy new file mode 100644 index 00000000..07f9ff58 Binary files /dev/null and b/data/UCR/ECG200/y.npy differ diff --git a/data/UCR/ECG200/y_train.npy b/data/UCR/ECG200/y_train.npy new file mode 100644 index 00000000..f630360e Binary files /dev/null and b/data/UCR/ECG200/y_train.npy differ diff --git a/data/UCR/ECG200/y_valid.npy b/data/UCR/ECG200/y_valid.npy new file mode 100644 index 00000000..4f7834c8 Binary files /dev/null and b/data/UCR/ECG200/y_valid.npy differ diff --git a/data/UCR/HandMovementDirection/X.npy b/data/UCR/HandMovementDirection/X.npy new file mode 100644 index 00000000..a1180a43 Binary files /dev/null and b/data/UCR/HandMovementDirection/X.npy differ diff --git a/data/UCR/HandMovementDirection/X_train.npy b/data/UCR/HandMovementDirection/X_train.npy new file mode 100644 index 00000000..ef76d017 Binary files /dev/null and b/data/UCR/HandMovementDirection/X_train.npy differ diff --git a/data/UCR/HandMovementDirection/X_valid.npy b/data/UCR/HandMovementDirection/X_valid.npy new file mode 100644 index 00000000..e634a6c6 Binary files /dev/null and b/data/UCR/HandMovementDirection/X_valid.npy differ diff --git a/data/UCR/HandMovementDirection/y.npy b/data/UCR/HandMovementDirection/y.npy new file mode 100644 index 00000000..2722dda5 Binary files /dev/null and b/data/UCR/HandMovementDirection/y.npy differ diff --git a/data/UCR/HandMovementDirection/y_train.npy b/data/UCR/HandMovementDirection/y_train.npy new file mode 100644 index 00000000..f4f2c15b Binary files /dev/null and b/data/UCR/HandMovementDirection/y_train.npy differ diff --git a/data/UCR/HandMovementDirection/y_valid.npy b/data/UCR/HandMovementDirection/y_valid.npy new file mode 100644 index 00000000..ca704df4 Binary files /dev/null and b/data/UCR/HandMovementDirection/y_valid.npy differ diff --git a/data/UCR/Handwriting/X.npy b/data/UCR/Handwriting/X.npy new file mode 100644 index 00000000..472479ef Binary files /dev/null and b/data/UCR/Handwriting/X.npy differ diff --git a/data/UCR/Handwriting/X_train.npy b/data/UCR/Handwriting/X_train.npy new file mode 100644 index 00000000..42141833 Binary files /dev/null and b/data/UCR/Handwriting/X_train.npy differ diff --git a/data/UCR/Handwriting/X_valid.npy b/data/UCR/Handwriting/X_valid.npy new file mode 100644 index 00000000..82ff0768 Binary files /dev/null and b/data/UCR/Handwriting/X_valid.npy differ diff --git a/data/UCR/Handwriting/y.npy b/data/UCR/Handwriting/y.npy new file mode 100644 index 00000000..57240ac6 Binary files /dev/null and b/data/UCR/Handwriting/y.npy differ diff --git a/data/UCR/Handwriting/y_train.npy b/data/UCR/Handwriting/y_train.npy new file mode 100644 index 00000000..51a3935a Binary files /dev/null and b/data/UCR/Handwriting/y_train.npy differ diff --git a/data/UCR/Handwriting/y_valid.npy b/data/UCR/Handwriting/y_valid.npy new file mode 100644 index 00000000..22bec9e5 Binary files /dev/null and b/data/UCR/Handwriting/y_valid.npy differ diff --git a/data/UCR/ItalyPowerDemand/X.npy b/data/UCR/ItalyPowerDemand/X.npy new file mode 100644 index 00000000..02774221 Binary files /dev/null and b/data/UCR/ItalyPowerDemand/X.npy differ diff --git a/data/UCR/ItalyPowerDemand/X_train.npy b/data/UCR/ItalyPowerDemand/X_train.npy new file mode 100644 index 00000000..c513ad04 Binary files /dev/null and b/data/UCR/ItalyPowerDemand/X_train.npy differ diff --git a/data/UCR/ItalyPowerDemand/X_valid.npy b/data/UCR/ItalyPowerDemand/X_valid.npy new file mode 100644 index 00000000..39c7177a Binary files /dev/null and b/data/UCR/ItalyPowerDemand/X_valid.npy differ diff --git a/data/UCR/ItalyPowerDemand/y.npy b/data/UCR/ItalyPowerDemand/y.npy new file mode 100644 index 00000000..2c2749b7 Binary files /dev/null and b/data/UCR/ItalyPowerDemand/y.npy differ diff --git a/data/UCR/ItalyPowerDemand/y_train.npy b/data/UCR/ItalyPowerDemand/y_train.npy new file mode 100644 index 00000000..1e382d53 Binary files /dev/null and b/data/UCR/ItalyPowerDemand/y_train.npy differ diff --git a/data/UCR/ItalyPowerDemand/y_valid.npy b/data/UCR/ItalyPowerDemand/y_valid.npy new file mode 100644 index 00000000..5c7d100b Binary files /dev/null and b/data/UCR/ItalyPowerDemand/y_valid.npy differ