-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
47 lines (31 loc) · 991 Bytes
/
config.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
# -*- coding: utf-8 -*-
"""
Created on Mon Jul 5 13:36:45 2021
@author: J Xin
Store the parameters of ML algorithms including SVM, KNN, Naive Bayes, Random Forest, XGBoost
Store the root path to save the results
"""
# path
parent_dir = 'D:/Xin/Program/AI_Quantamental/results/'
## Model Parameters
SVM_PARAMS = {'kernel': 'linear',
'C': 0.1,
'gamma': 0.1,
'degree': 2,
}
KNeighbors_PARAMS = {'n_neighbors': 10,
'weights': 'distance',
'p': 1
}
GaussianNB_PARAMS = {'var_smoothing' : 0.01
}
RandomForest_PARAMS = {'n_estimators' : 50,
'max_features': 50,
'criterion': 'gini',
'random_state': 42
}
XGBoost_PARAMS = {'n_estimator': 50,
'max_depth' : 50,
'learning_rate': 0.1,
'random_state': 42
}