質問編集履歴

1

エラーを全文追加いたしました.

2020/08/16 14:31

投稿

kandaaa
kandaaa

スコア5

test CHANGED
File without changes
test CHANGED
@@ -80,29 +80,15 @@
80
80
 
81
81
  AttributeError Traceback (most recent call last)
82
82
 
83
- <ipython-input-55-93a99ccf1f18> in <module>
83
+ <ipython-input-72-9371d79f08d8> in <module>
84
84
 
85
- 1 lgb_results = {} # 学習の履歴を入れる入物
85
+ 19 early_stopping_rounds=20,
86
86
 
87
- ----> 2 model = lgb.train(params,lgb_train)
87
+ 20 verbose_eval=True,
88
88
 
89
+ ---> 21 folds=folds
89
90
 
90
-
91
- ~/OneDrive/research/lab_env/lib/python3.7/site-packages/optuna/_experimental.py in new_func(*args, **kwargs)
92
-
93
- 62 ),
91
+ 22 )
94
-
95
- 63 ExperimentalWarning,
96
-
97
- ---> 64 stacklevel=2,
98
-
99
- 65 )
100
-
101
- 66
102
-
103
-
104
-
105
- ~/OneDrive/research/lab_env/lib/python3.7/site-packages/optuna/integration/lightgbm_tuner/__init__.py in train(*args, **kwargs)
106
92
 
107
93
 
108
94
 
@@ -120,7 +106,7 @@
120
106
 
121
107
 
122
108
 
123
- ~/OneDrive/research/lab_env/lib/python3.7/site-packages/optuna/integration/lightgbm_tuner/optimize.py in __init__(self, params, train_set, num_boost_round, valid_sets, valid_names, fobj, feval, feature_name, categorical_feature, early_stopping_rounds, evals_result, verbose_eval, learning_rates, keep_training_booster, callbacks, time_budget, sample_size, best_params, tuning_history, study, optuna_callbacks, model_dir, verbosity)
109
+ ~/OneDrive/research/lab_env/lib/python3.7/site-packages/optuna/integration/lightgbm_tuner/optimize.py in __init__(self, params, train_set, num_boost_round, folds, nfold, stratified, shuffle, fobj, feval, feature_name, categorical_feature, early_stopping_rounds, fpreproc, verbose_eval, show_stdv, seed, callbacks, time_budget, sample_size, study, optuna_callbacks, verbosity)
124
110
 
125
111
 
126
112