You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had trouble installing lightgbm v3.2.1 (as suggested in the environment .yml) so I installed the latest I could, version 4.3.0. When I got to the lgb.train function in the book, the "early_stopping_rounds=200" parameter is used, but this parameter no longer (directly) exists in that function.
Omitting that parameter yields terrible results, but I found a compatibility fix on the LightGBM github repo. They removed this parameter and put it in something called callbacks.
I replaced "early_stopping_rounds=200" parameter with "callbacks=[lgb.early_stopping(stopping_rounds=200)]" and it worked just fine with results very similar to the book.
First time using github, so apologies if this doesn't go here. Hopefully this helps someone encountering the same issue!
The text was updated successfully, but these errors were encountered:
I had trouble installing lightgbm v3.2.1 (as suggested in the environment .yml) so I installed the latest I could, version 4.3.0. When I got to the lgb.train function in the book, the "early_stopping_rounds=200" parameter is used, but this parameter no longer (directly) exists in that function.
Omitting that parameter yields terrible results, but I found a compatibility fix on the LightGBM github repo. They removed this parameter and put it in something called callbacks.
I replaced "early_stopping_rounds=200" parameter with "callbacks=[lgb.early_stopping(stopping_rounds=200)]" and it worked just fine with results very similar to the book.
First time using github, so apologies if this doesn't go here. Hopefully this helps someone encountering the same issue!
The text was updated successfully, but these errors were encountered: