Installation
To install the TimeSeAD library, first clone the code to your local machine:
git clone https://github.com/wagner-d/TimeSeAD.git
Setup an environment
We recommend to set up a virtual python environment before installing TimeSeAD. The following instructions assume that you are using conda for this.
Install Miniconda if you do not have any
condainstallation on your system.Open a terminal,
cdinto the project folder and create a new environment withconda env create --file setup/conda_env_cpu.yaml
This will also install basic dependencies such as PyTorch. If you want to use TimeSeAD with NVIDIA GPU support, replace
setup/conda_env_cpu.yamlwithsetup/conda_env_cuda.yaml(CUDA 10.2) orsetup/conda_env_cuda111.yaml(CUDA 11.1).Activate the environment with
conda activate TimeSeAD
Install the TimeSeAD library
We recommend installing the library in development mode so that you can make changes as you need them. This is easily achieved using pip:
pip install -e .
If you want to use the experiments as well, install the library as follows to include optional dependencies:
pip install -e .[experiments]
Now you can use the TimeSeAD library in your own projects by simply importing it
import timesead
# Or just import certain parts
from timesead.models.prediction import TCNPrediction