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

OOB warning from GBM function when model has single predictor #35

Open
StanWijn opened this issue Sep 28, 2022 · 0 comments
Open

OOB warning from GBM function when model has single predictor #35

StanWijn opened this issue Sep 28, 2022 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@StanWijn
Copy link
Collaborator

In eb93cb2 I fixed the error when using "boosting" and when the model has a single predictor by changing cv = 0. This resulted in an error in the gbm.perf function (line 346 & 351 of CATE_count.R) because the default method was "cv" which required cv > 1. Therefore, in case of a single predictor, i changed the method for gbm.perf to "OOB" .

Although this fixed the error, it will now repeat the same warning 10 times:

OOB generally underestimates the optimal number of iterations although predictive performance is reasonably competitive. Using cv_folds>1 when calling gbm usually results in improved predictive performance.
OOB generally underestimates the optimal number of iterations although predictive performance is reasonably competitive. Using cv_folds>1 when calling gbm usually results in improved predictive performance.
OOB generally underestimates the optimal number of iterations although predictive performance is reasonably competitive. Using cv_folds>1 when calling gbm usually results in improved predictive performance.
OOB generally underestimates the optimal number of iterations although predictive performance is reasonably competitive. Using cv_folds>1 when calling gbm usually results in improved predictive performance.
OOB generally underestimates the optimal number of iterations although predictive performance is reasonably competitive. Using cv_folds>1 when calling gbm usually results in improved predictive performance.
OOB generally underestimates the optimal number of iterations although predictive performance is reasonably competitive. Using cv_folds>1 when calling gbm usually results in improved predictive performance.
OOB generally underestimates the optimal number of iterations although predictive performance is reasonably competitive. Using cv_folds>1 when calling gbm usually results in improved predictive performance.
OOB generally underestimates the optimal number of iterations although predictive performance is reasonably competitive. Using cv_folds>1 when calling gbm usually results in improved predictive performance.
OOB generally underestimates the optimal number of iterations although predictive performance is reasonably competitive. Using cv_folds>1 when calling gbm usually results in improved predictive performance.
OOB generally underestimates the optimal number of iterations although predictive performance is reasonably competitive. Using cv_folds>1 when calling gbm usually results in improved predictive performance.

I tried to wrap the gbm.perf in "tryCatch" or withCallingHandlers, but this does not seem to resolve the issue so I assume the warnings comes from another function that uses the object generated by gbm.perf?

I don't think this is a mayor issue (as this only occurs when "boosting" and a single predictor), but maybe fix this in the future.

@StanWijn StanWijn added the help wanted Extra attention is needed label Sep 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant