-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbuild.sh
More file actions
35 lines (33 loc) · 849 Bytes
/
build.sh
File metadata and controls
35 lines (33 loc) · 849 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
for arg in "$@"
do
if [ "$arg" == "--data" ] || [ "$arg" == "-d" ]
then
echo "Downloading Data"
Rscript ./data/generators/X.Multiple.Rscript $(cat tickers/tickers_all.txt)
wait;
fi
if [ "$arg" == "--model" ] || [ "$arg" == "-m" ]
then
echo "Generating Features and Building Model"
python MEDUSA_V1/medusa_v1.py
wait;
fi
if [ "$arg" == "--inference-only" ] || [ "$arg" == "-i" ]
then
echo "Generating Features and Building Model"
python MEDUSA_V1/medusa_v1.py --inference-only 1
wait;
fi
if [ "$arg" == "--push" ] || [ "$arg" == "-p" ]
then
git add reports/*
wait;
git add data/files/*
wait;
git commit -m "auto commit"
wait;
git push
fi
echo "DONE."
done