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

model_diagnostics is not working when data is a matrix #355

Closed
pbiecek opened this issue Nov 9, 2020 · 0 comments · Fixed by #356
Closed

model_diagnostics is not working when data is a matrix #355

pbiecek opened this issue Nov 9, 2020 · 0 comments · Fixed by #356
Labels
bug 💣 Bug to fix R 🐳 Related to R

Comments

@pbiecek
Copy link
Member

pbiecek commented Nov 9, 2020

For XGBoost models the data is usually of type matrix.
In such cases model_diagnostics gives a WARNING due to

results$y <- explainer$y

The $ works for data.frames.
Replace with cbind is possible.

@pbiecek pbiecek added bug 💣 Bug to fix R 🐳 Related to R labels Nov 9, 2020
hbaniecki added a commit that referenced this issue Nov 9, 2020
hbaniecki added a commit that referenced this issue Nov 12, 2020
* potential fix for #355

* result as data.frame

* do the same but smarter

* Update DESCRIPTION
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 💣 Bug to fix R 🐳 Related to R
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant