TimeEval-algorithms icon indicating copy to clipboard operation
TimeEval-algorithms copied to clipboard

Add GDN algorithm

Open SebastianSchmidl opened this issue 2 years ago • 2 comments

Adds the GDN algorithm from https://github.com/d-ailin/GDN (Paper: https://doi.org/10.1609/aaai.v35i5.16523)

Fixes #15

SebastianSchmidl avatar Jun 30 '23 13:06 SebastianSchmidl

@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 with algorithm.py and 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

SebastianSchmidl avatar Jun 30 '23 13:06 SebastianSchmidl

@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": {}
  }'

2er0 avatar Sep 21 '23 09:09 2er0