We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Seems like it will fail whever an xgboost model is fit without a params argument:
library(pdp) library(xgboost) boston <- pdp::boston X <- data.matrix(subset(boston, select = -cmedv)) y <- boston$cmedv set.seed(1612) bst <- xgboost(X, label = y, nrounds = 100, verbose = 0) partial(bst, pred.var = "chas", train = X) # will fail partial(bst, pred.var = "chas", train = X, type = "regression")
The text was updated successfully, but these errors were encountered:
Need to check if bst$params$objective is NULL first.
bst$params$objective
NULL
Sorry, something went wrong.
No branches or pull requests
Seems like it will fail whever an xgboost model is fit without a params argument:
The text was updated successfully, but these errors were encountered: