The script is a fork from ts2img. The slicing of time series was a bi-product of the trasfomation, so this scipt utilizes only the latter part.
For easier data handling NILMTK was used.
environment
Works with all datasets supported by NILMTK. Tested on:
- REFIT
- UKDALE
- iAWE
- REDD
- ECO
❗️ If possible, install on a Linux machine.
-
Clone this repository and change directory to conda:
git clone https://github.com/jenkoj/ts2img && cd ts2img/conda
-
Create a new environment by running:
conda env create --name ts2img --file=ts2img.yml
-
Activate the newly created environment:
conda activate ts2img
-
Get hold of a dataset converted to NILMTK format or convert your dataset.
-
Place converted dataset in datasets directory.
-
Set parameters.
-
Finally, run:
ipython -c "%run converter.ipynb"
When adjusting the parameters start with iAWE. Since it is small, it is easy to handle.