質問編集履歴
2
表題をわかりやすくした
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
Define by Run
|
1
|
+
defの引数に、def内で定義された関数を格納する方法(Define by Runの関数化)
|
test
CHANGED
File without changes
|
1
関数修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -30,7 +30,9 @@
|
|
30
30
|
|
31
31
|
"max_depth": trial.suggest_int("max_depth", 1, 15),
|
32
32
|
|
33
|
-
"min_samples_leaf": trial.suggest_int("min_samples_leaf", 1, 5)
|
33
|
+
"min_samples_leaf": trial.suggest_int("min_samples_leaf", 1, 5),
|
34
|
+
|
35
|
+
'bootstrap': trial.suggest_categorical('bootstrap', [True, False])
|
34
36
|
|
35
37
|
}
|
36
38
|
|
@@ -102,7 +104,9 @@
|
|
102
104
|
|
103
105
|
"max_depth": trial.suggest_int("max_depth", 1, 15),
|
104
106
|
|
105
|
-
"min_samples_leaf": trial.suggest_int("min_samples_leaf", 1, 5)
|
107
|
+
"min_samples_leaf": trial.suggest_int("min_samples_leaf", 1, 5),
|
108
|
+
|
109
|
+
'bootstrap': trial.suggest_categorical('bootstrap', [True, False])
|
106
110
|
|
107
111
|
}
|
108
112
|
|