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

Is it possible to do pdp for an xgboost count::poisson? I get the following error: #123

Open
Martafenix opened this issue Jan 19, 2022 · 3 comments

Comments

@Martafenix
Copy link

image

@bgreenwell
Copy link
Owner

Hi @Martafenix, yes you certainly can. Here’s an example: https://github.com/bgreenwell/pdp/blob/master/slowtests/slowtests-mtcars.R. Not sure why you’re getting an error though without seeing a reproducible example.

@Martafenix
Copy link
Author

My matrix is built like this, maybe that's why:

dt_train <- train_data %>%
select(-all_of(vars_to_remove)) %>%
as.matrix() %>%
xgboost::xgb.DMatrix(label = target_train, weight = weight_train)

@bgreenwell
Copy link
Owner

Are you able to post a short reproducible example @Martafenix? If so, I'd be happy to provide the fix.

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