-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathregression_model_dict.py
More file actions
executable file
·30 lines (30 loc) · 1.55 KB
/
regression_model_dict.py
File metadata and controls
executable file
·30 lines (30 loc) · 1.55 KB
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
from sklearn.tree import DecisionTreeRegressor
from sklearn.ensemble import ExtraTreesRegressor, AdaBoostRegressor, RandomForestRegressor, GradientBoostingRegressor
from sklearn.neural_network import MLPRegressor
from sklearn.svm import SVR
from sklearn.linear_model import Ridge, Lasso, SGDRegressor, BayesianRidge
from sklearn.neighbors import KNeighborsRegressor, RadiusNeighborsRegressor
from sklearn.experimental import enable_hist_gradient_boosting
from sklearn.ensemble import HistGradientBoostingRegressor
from catboost import CatBoostRegressor
from lightgbm import LGBMRegressor
tree_regressors = {
"Decision_tree_regressor": DecisionTreeRegressor(),
"AdaBoost_regressor": AdaBoostRegressor(),
"Extra_trees_regressor": ExtraTreesRegressor(),
"Random_forest_regressor": RandomForestRegressor(), # Takes 55 seconds
"GBM_regressor": GradientBoostingRegressor(), #Takes forever
"HGB_regressor": HistGradientBoostingRegressor(),
"CATBoost_regressor": CatBoostRegressor(verbose=0),
"lightgbm_regressor": LGBMRegressor(),
}
mult_regeressors = {
"Linear_regression": LinearRegression(), ### Dont use results were awful
"Ridge_regressor": Ridge(),
"SVM_regressor": SVR(), # Takes 150 seconds
"MLP_regressor": MLPRegressor(),
"SGD_regressor": SGDRegressor(),
"KNN_regressor": KNeighborsRegressor(),
"BR_regressor" : BayesianRidge(),
"RNN_regressor": RadiusNeighborsRegressor(), # Predicts NaN's :S
}