[제로베이스 데이터 취업 스쿨]
params = {"C" : [0.01, 0.1, 1, 5, 10]} # best_params_: 5
# C: 규제의 정도(작을수록 규제가 강해짐)
params = {
'max_depth':[6, 8, 10], 'n_estimators':[50, 100, 200],
'min_samples_leaf':[8, 12, 18], 'min_samples_split':[8, 16, 20] }
# {'max_depth': 10, 'min_samples_leaf': 8, 'min_samples_split': 20, 'n_estimators': 100}
params = {'max_depth': [6, 8, 10, 12, 16, 20, 24]} # best_params_: 12
params = {"C" : [1, 100, 10, 0.1, 0.01, 0.001]} # best_params_: 100
params = {
'max_depth' : [3, 5, 7, 9], 'n_estimators' : [100, 200, 300, 400],
'learning_rate' : [0.1, 0.2] }
# {n_estimators: 100, learning_rate: 0.2, max_depth: 9}