forked from TimeEval/TimeEval-algorithms
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.sh
More file actions
executable file
·19 lines (13 loc) · 701 Bytes
/
Copy pathtest.sh
File metadata and controls
executable file
·19 lines (13 loc) · 701 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env bash
# call as: ./test.sh <algorithm_name> [test] [execute]
algorithm=$1 # <algorithm_name>
docker rmi registry.gitlab.hpi.de/akita/i/$algorithm:latest
docker build -t registry.gitlab.hpi.de/akita/i/$algorithm $algorithm
docker rm $(docker ps -a -q)
for execution in "$@"
do
if [[ $execution == "train" || $execution == "execute" ]]
then
docker run --rm -v $(pwd)/1-data:/data:ro -v $(pwd)/2-results:/results:rw registry.gitlab.hpi.de/akita/i/$algorithm:latest execute-algorithm '{"executionType": "'$execution'", "dataInput": "/data/dataset.csv", "dataOutput": "/results/anomaly_scores.ts", "modelInput": "/model/model.txt", "modelOutput": "/model/model.txt"}'
fi
done