diff --git a/config/config_hydra.yaml b/config/config_hydra.yaml index 3bf8af0..bff48b1 100644 --- a/config/config_hydra.yaml +++ b/config/config_hydra.yaml @@ -5,7 +5,7 @@ hydra : dir : exps/${hydra.job.name} output_dir: './' # output directory -dataset : "ERing" # dataset name to load from aeon +dataset : "GunPoint" # dataset name to load from aeon split: Null # either use train/test or both splits znormalize: True # znormalize each time series channel independent diff --git a/main.py b/main.py index 27e99dc..43dcb5b 100644 --- a/main.py +++ b/main.py @@ -4,8 +4,8 @@ import hydra from omegaconf import DictConfig, OmegaConf -from utils import create_directory, load_data -from draw_functions import draw_elastic, draw_elastic_gif +from src.utils import create_directory, load_data +from src.draw_functions import draw_elastic, draw_elastic_gif @hydra.main(config_name="config_hydra.yaml", config_path="config") diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..1838ced --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,69 @@ +[build-system] +requires = ["setuptools>61", "wheel", "toml", "build"] +build-backend = "setuptools.build_meta" + +[project] +name = "elastic-warping-visualization" +version = "0.0.1" +description = " Visualization of Elastic Warping of Time Series Data " +authors = [ + {name = "Ali Ismail-Fawaz", email = "ali-el-hadi.ismail-fawaz@uha.fr"}, + {name = "Maxime Devanne", email = "maxime.devanne@uha.fr"}, + {name = "Stefano Berretti", email = "stefano.berretti@unifi.it"}, + {name = "Jonathan Weber", email = "jonathan.weber@uha.fr"}, + {name = "Germain Forestier", email = "germain.forestier@uha.fr"} +] +maintainers = [ + {name = "Ali Ismail-Fawaz", email = "ali-el-hadi.ismail-fawaz@uha.fr"} +] +requires-python = ">=3.10" +license = {text = "GPL-3.0-only"} + +keywords = [ + "data-science", + "machine-learning", + "data-mining", + "time-series", + "dynamic-time-warping", + "elastic-similarity-measures", + "elastic-distances", + "time-series-analysis", + "time-series-classification", + "time-series-regression", + "time-series-machine-learning", + "data-visualization" +] + +classifiers = [ + "Development Status :: 4 - Beta", + "Intended Audience :: Developers", + "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12" +] + +dependencies = [ + "numpy==1.26.4", + "aeon==0.10.0", + "hydra-core==1.3.2", + "omegaconf==2.3.0", + "matplotlib==3.9.0" +] + +[project.optional-dependencies] +dev = [ + "black", + "flake8", + "mypy", + "pytest", + "pytest-cov", + "pytest-xdist", + "pytest-timeout", + "pytest-rerunfailures", + "pre-commit" +] + +[tool.setuptools] +packages = ["src"] \ No newline at end of file diff --git a/draw_functions.py b/src/draw_functions.py similarity index 99% rename from draw_functions.py rename to src/draw_functions.py index f613f49..4cf226f 100644 --- a/draw_functions.py +++ b/src/draw_functions.py @@ -13,7 +13,7 @@ from aeon.distances import cost_matrix from aeon.distances._alignment_paths import compute_min_return_path -from utils import alignment_path_to_plot +from src.utils import alignment_path_to_plot def draw_elastic( diff --git a/utils.py b/src/utils.py similarity index 100% rename from utils.py rename to src/utils.py