Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

boosting_type "rf" leads to unresolvable failures #1333

Closed
namato opened this issue Apr 21, 2018 · 1 comment
Closed

boosting_type "rf" leads to unresolvable failures #1333

namato opened this issue Apr 21, 2018 · 1 comment

Comments

@namato
Copy link

namato commented Apr 21, 2018

Hey guys, I'm doing some grid searching with various boosting_type settings, and notice that whenever I use boosting_type rf, the fit fails:

[LightGBM] [Fatal] Check failed: config->bagging_freq > 0 && config->bagging_fraction < 1.0f && config-
>bagging_fraction > 0.0f at /home/travis/build/Microsoft/LightGBM/python-package/compile/src/boosting/r
f.hpp, line 29 .

Even though in the sklearn API:

  1. There are no other parameters set other than the defaults
  2. The fit succeeds with "gbd", "dart" and "goss"
  3. There is no way to actually set these values in the sklearn API (bagging_freq, bagging_fraction) other than through additional kwargs, which is apparently unsupported
@guolinke
Copy link
Collaborator

guolinke commented Apr 21, 2018

for random forest, you should use subsets (that is the definition of RF). As a result, you should set baggeng_freq=1 with bagging_fraction < 1.0f

@lock lock bot locked as resolved and limited conversation to collaborators Mar 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants