-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
112 lines (74 loc) · 2.46 KB
/
Makefile
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
PROJECT_DIR=./
all: clean run
@echo "\nMake Done\n"
full: clean twod clean run
@echo "\nMake Full Done\n"
clean:
@echo "\nCleaning...\n"
rm --force --recursive *.pickle
rm --force --recursive *.log
rm --force --recursive *.tar
rm --force --recursive *.train
rm --force --recursive *.state
lint:
@echo "\nLinting...\n"
flake8 --exclude=.tox
flush: clean
@echo "\nRunning 2d...\n"
python src/controller.py --iterations 1 --epochs 1 --twod -t
monitor: clean
@echo "\nRunning Monitors...\n"
python src/controller.py
active: clean
@echo "\nRunning Active Monitors with Traffic...\n"
python src/controller.py --generate-traffic --n_samples 70
reset
passive: clean
@echo "\nRunning Passive Monitors with Traffic...\n"
python src/controller.py --passive --generate-traffic
reset
cleanremote:
python src/controller.py --test-clean --search "{1..3}" --replace "{1..$(iter)}"
steps: clean cleanremote
python src/controller.py --generate-traffic --n_samples 70 --search "{1..3}" --replace "{1..$(iter)}"
rm --force --recursive run_$(iter)
mkdir run_$(iter)
mv *.tar run_$(iter)
@echo "\nrun_$(iter) done\n"
reset
stats: clean active cleanremote
rm --force --recursive run_$(iter)
mkdir run_$(iter)
mv *.tar run_$(iter)
@echo "\nrun_$(iter) done\n"
reset
test: clean testekf testlstm testctl testconvergence testmodeltrack
testekf: clean
@echo "\nTesting EKF Unit...\n"
python src/ekf.py
testekf-lstm: clean
@echo "\nTesting EKF-based weight updates for LSTM training...\n"
python src/ekf.py --testlstm
testlstm: clean
@echo "\nTesting LSTM Unit...\n"
python src/lstm.py
testctl: clean
@echo "\nTesting Control Unit...\n"
python src/controller.py --iterations 10 --epochs 2 --test
testconvergence: clean
@echo "\nTesting LSTM-EKF Convergence...\n"
python src/controller.py --test-convergence 0
python src/controller.py --test-convergence 1
python src/controller.py --test-convergence 2
python src/controller.py --test-convergence 3
python src/controller.py --test-convergence 4
python src/controller.py --test-convergence 5
testmodeltrack: clean
@echo "\nTesting LSTM LQN Model Tracking...\n"
python src/controller.py --track-model --n_msmt 7 --n_lstm_out 7 --n_entries 1
testpca: clean
@echo "\nTesting PCA Tracking...\n"
python src/ekf.py --testpcacsv -f cpu1.csv -x '"{pod=""carts-b4d4ffb5c-kq6xg""}"' -y '"{pod=""carts-b4d4ffb5c-kq6xg""}"'
run:
@echo "\nRunning Controller...\n"
python src/controller.py --iterations 10 --epochs 2 -t