-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathparams.py
73 lines (66 loc) · 1.67 KB
/
params.py
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
import sys
def params(model):
if "_C" in model:
predo=True
SIM_REGRESSOR=False
else:
predo=False
SIM_REGRESSOR=True
if "Cardio" in model:
SIM_YLST=[1,2,3]
elif "RedWine" in model:
SIM_YLST=[3,4,5,6,7,8]
elif "WhiteWine" in model:
SIM_YLST=[3,4,5,6,7,8,9]
if "Cardio_MLP_C" in model:
inputs=21
output_b=2
SIM_FRACTION_BITS=16
elif "Cardio_MLP_R" in model:
inputs=21
output_b=22
SIM_FRACTION_BITS=16
elif "Cardio_SVM_C" in model:
inputs=21
output_b=2
SIM_FRACTION_BITS=8
elif "Cardio_SVM_R" in model:
inputs=21
output_b=14
SIM_FRACTION_BITS=10
elif "RedWine_MLP_C" in model:
inputs=11
output_b=3
SIM_FRACTION_BITS=12
elif "RedWine_MLP_R" in model:
inputs=11
output_b=20
SIM_FRACTION_BITS=12
elif "RedWine_SVM_C" in model:
inputs=11
output_b=3
SIM_FRACTION_BITS=7
elif "RedWine_SVM_R" in model:
inputs=11
output_b=14
SIM_FRACTION_BITS=9
elif "WhiteWine_MLP_C" in model:
inputs=11
output_b=3
SIM_FRACTION_BITS=12
elif "WhiteWine_MLP_R" in model:
inputs=11
output_b=21
SIM_FRACTION_BITS=14
elif "WhiteWine_SVM_C" in model:
inputs=11
output_b=3
SIM_FRACTION_BITS=7
elif "WhiteWine_SVM_R" in model:
inputs=11
output_b=13
SIM_FRACTION_BITS=8
else:
print("Error in model, exiting...")
sys.exit()
return inputs, output_b, predo, SIM_REGRESSOR, SIM_FRACTION_BITS, SIM_YLST