-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstants.py
52 lines (43 loc) · 921 Bytes
/
constants.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
from tkinter import BOTTOM, LEFT
#DATA VISUALIZATION
FIGSIZE_X = 20
FIGSIZE_Y = 10
N_PLOT_X = 5
N_PLOT_Y = 5
ROTATION = 30
LEFT = 0.052
RIGHT = 0.962
BOTTOM = 0.048
TOP = 0.974
W_SPACE = 0.324
H_SPACE = 0.567
#FEATURE SELECTION VISUALIZATION
FIGSIZE_X_FS = 10
FIGSIZE_Y_FS = 5
ROTATION_FS = 90
LEFT_FS = 0.052
RIGHT_FS = 1
BOTTOM_FS = 0.37
TOP_FS = 1
W_SPACE_FS = 0.2
H_SPACE_FS = 0.2
#FEATURE SELECTION DIVIDER
DIVIDER = 0.035
#NUMERICAL FEATURES
NUMERICAL_FEATURES = ["BMI", "MentHlth", "PhysHlth", "Age"]
#SPLITTING DATA
TEST_SIZE = 0.20
TEST_SIZE_TSNE = 0.05
#STRATIFIED K FOLD
N_SPLITS = 5
N_TREES = [10, 100, 500, 1000]
N_LEARNING_RATE = [1, 0.5, 0.25, 0.1, 0.05]
N_BIG_TREES = [1000, 5000, 7000, 10000]
N_DEFAULT_TREES = 100
MAX_DEFAULT_DEPTH = 1
#BEST PARAMETERS
N_ESTIMATORS = 125
LEARNING_RATE = 0.5
MAX_DEPTH = 2
#dataframe path
PATH = "diabetes.csv"