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

R example for xgb.train throws warning #7247

Closed
david-cortes opened this issue Sep 19, 2021 · 4 comments
Closed

R example for xgb.train throws warning #7247

david-cortes opened this issue Sep 19, 2021 · 4 comments

Comments

@david-cortes
Copy link
Contributor

When running the R example from xgb.train in the current master branch, I get the following warning:

[<time>] WARNING: amalgamation/../src/learner.cc:576: 
Parameters: { "verbose" } might not be used.

  This may not be accurate due to some parameters are only used in language bindings but
  passed down to XGBoost core.  Or some parameters are not used but slip through this
  verification. Please open an issue if you find above cases.

Code as given in the example:

data(agaricus.train, package='xgboost')
data(agaricus.test, package='xgboost')

dtrain <- with(agaricus.train, xgb.DMatrix(data, label = label))
dtest <- with(agaricus.test, xgb.DMatrix(data, label = label))
watchlist <- list(train = dtrain, eval = dtest)

## A simple xgb.train example:
param <- list(max_depth = 2, eta = 1, verbose = 0, nthread = 2,
              objective = "binary:logistic", eval_metric = "auc")
bst <- xgb.train(param, dtrain, nrounds = 2, watchlist)
@trivialfis
Copy link
Member

Let me take a look. Thanks for opening the issue.

@trivialfis
Copy link
Member

I need to deprecate the verbose parameter in the next release and unify it with the verbosity that's used by other bindings.

@kushknows
Copy link

Same warning I am getting in Python also. I tried some methods but none of them work. Please resolve this issue

@trivialfis
Copy link
Member

Fixed by #9942 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 2.0 Done
Development

No branches or pull requests

3 participants