在我使用VS法典中的灯光时,我会遇到一个问题:
parameters = {
application : binary ,
objective : binary ,
metric : auc ,
is_unbalance : true ,
boosting : gbdt ,
num_leaves : 50,#31,
feature_fraction : 0.8,
bagging_fraction : 0.8,
bagging_freq : 20,
learning_rate : 0.003,
max_depth : 5,
verbose : 0}
model = lgb.train(parameters,
train_data_lgb,
valid_sets=test_data_lgb,
num_boost_round=3000,
early_stopping_rounds=100)
错误是:
TypeError Traceback (most recent
call last)
c:Userslvn06DesktopML bootcampSesión 52. Bagging y Boosting - Clasificación.ipynb Cell 178 line 1
----> 1 model = lgb.train(parameters,
2 train_data_lgb,
3 valid_sets=test_data_lgb,
4 num_boost_round=3000,
5 early_stopping_rounds=100)
TypeError: train() got an unexpected keyword argument early_stopping_rounds
我正在寻找解决办法,但却没有找到解决办法。