-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
39 lines (36 loc) · 893 Bytes
/
Copy pathconfig.py
File metadata and controls
39 lines (36 loc) · 893 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
34
35
36
37
38
39
# Configuration file for Advanced ML Pipeline
ML_CONFIG = {
'random_state': 42,
'test_size': 0.2,
'cv_folds': 5,
'n_jobs': -1,
'output_dir': 'outputs/',
}
VISUALIZATION_CONFIG = {
'figure_size': (12, 8),
'dpi': 300,
'style': 'whitegrid',
}
HYPERPARAMETER_GRIDS = {
'Random Forest': {
'n_estimators': [100, 200, 300],
'max_depth': [10, 20, None],
'min_samples_split': [2, 5, 10],
'min_samples_leaf': [1, 2, 4]
},
'Gradient Boosting': {
'n_estimators': [100, 200],
'learning_rate': [0.01, 0.1, 0.2],
'max_depth': [3, 5, 7]
},
'Logistic Regression': {
'C': [0.01, 0.1, 1, 10],
'penalty': ['l1', 'l2'],
'solver': ['liblinear', 'saga']
},
'SVM': {
'C': [0.1, 1, 10],
'kernel': ['linear', 'rbf'],
'gamma': ['scale', 'auto']
}
}