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

WARNING: src/c_api/c_api.cc:935: ntree_limit is deprecated, use iteration_range instead. #1359

Open
muchillin opened this issue Mar 28, 2024 · 1 comment

Comments

@muchillin
Copy link

Dear doctor, I would like to ask you a question regarding an error with boosting, when creating the xgbTree code, it happens that an error appears in the console:

WARNING: src/c_api/c_api.cc:935: ntree_limit is deprecated, use iteration_range instead.

which does not stop and you have to perform a manual "escape", but the code was not executed; For this reason, I would like to be able to make the query and know if you could tell me how to fix the problem.

very thankful,
José

@bappa10085
Copy link

bappa10085 commented Dec 10, 2024

You can follow this. Just add verbosity = 0 within train function. As suggested by missuse "The current warning means xgboost is changing the name of an argument, but caret is still supplying the old name. Currently, it works but with new xgboost versions the argument will be completely replaced, if carets function code is not updated by then the warning will be replaced by an error." So, it would be better to update the caret function code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants