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] XGBoost 2 deprecation error #10726

Closed
mayer79 opened this issue Aug 20, 2024 · 1 comment
Closed

[R] XGBoost 2 deprecation error #10726

mayer79 opened this issue Aug 20, 2024 · 1 comment

Comments

@mayer79
Copy link
Contributor

mayer79 commented Aug 20, 2024

I am testing the new R package (version 2.2.0.0).

The deprecation warnings give errors for objects like "valids" or "watchlist" that contain external pointers.

library(xgboost)

dtrain <- xgb.DMatrix(iris[2:4], label = iris[, 1])
fit <- xgb.train(
  params = list(), data = dtrain, watchlist = list(train = dtrain), nrounds = 10
)

# Gives (sorry, german...)
Fehler in parse(text = paste(new_par, "<-", pars[[pars_par]])) : 
  <text>:1:10: Unerwartete(s) '<'
1: evals <- <
             ^
Zusätzlich: Warnmeldung:
In check.deprecation(...) : 'watchlist' ist veraltet.
Benutzen Sie stattdessen 'evals'
Siehe help("Deprecated") und help("xgboost-deprecated").

The warning is fine, but the error seems a bit harsh.

@mayer79
Copy link
Contributor Author

mayer79 commented Aug 24, 2024

Ah, I see this is already discussed here: #10563

@mayer79 mayer79 closed this as completed Aug 24, 2024
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

Successfully merging a pull request may close this issue.

1 participant