TimeEval-algorithms
TimeEval-algorithms copied to clipboard
Add GDN algorithm
Adds the GDN algorithm from https://github.com/d-ailin/GDN (Paper: https://doi.org/10.1609/aaai.v35i5.16523)
Fixes #15
@2er0 can you take it from here?
- [x] add source code within the given template (transform data and set the parameters)
- [x] check parameter definitions in
algorithm.py(name, type, default value, and their completeness) - [ ] check parameter definitions in
manifest.json(consistent withalgorithm.pyand descriptions) - [x] adapt implementation to correctly save the model
- [ ] check if the algorithm successfully trains and executes (I can help with that)
- [x] does the algorithm need reverse windowing? add a note in the README
@CodeLionX please test - I found some time to make the first full working draft.
docker build -t registry.gitlab.hpi.de/akita/i/python3-base:0.2.6 ./0-base-images/python3-base
docker build -t registry.gitlab.hpi.de/akita/i/python3-torch:0.2.6 ./0-base-images/python3-torch
docker build -t registry.gitlab.hpi.de/akita/i/gdn:0.2.6 ./gdn
docker run --rm \
-v $(pwd)/1-data:/data:ro \
-v $(pwd)/2-results:/results:rw \
registry.gitlab.hpi.de/akita/i/gdn:0.2.6 execute-algorithm '{
"executionType": "train",
"dataInput": "/data/multi-dataset.csv",
"dataOutput": "/results/anomaly_scores.ts",
"modelInput": "/results/model.pkl",
"modelOutput": "/results/model.pkl",
"customParameters": {}
}'
docker run --rm \
-v $(pwd)/1-data:/data:ro \
-v $(pwd)/2-results:/results:rw \
registry.gitlab.hpi.de/akita/i/gdn:0.2.6 execute-algorithm '{
"executionType": "execute",
"dataInput": "/data/multi-dataset.csv",
"dataOutput": "/results/test_anomaly_scores.ts",
"modelInput": "/results/model.pkl",
"modelOutput": "/results/model.pkl",
"customParameters": {}
}'