랜덤포레스트
from sklearn.model_selection import train_test_split from bayes_opt import BayesianOptimization rf_parameter_bounds = { 'max_depth' : (5,30), 'n_estimators': (10,100), 'min_samples_split': (2,10), 'min_samples_leaf': (1,4) } def NMAE(true, pred): score = np.sum(np.abs(true-pred)) / np.sum(true) return score def rf_bo(max_depth,n_estimators,min_samples_split, min_samples_leaf): rf_params = { 'max..
2022. 8. 31.