Closed ZellW closed 6 years ago
For your xgBoost example found here: https://pbiecek.github.io/breakDown/articles/break_xgboost.html an error is raised when executing: explain_xgb <- broken(HR_xgb_model, new_observation = nobs, data = model_matrix_train)
explain_xgb <- broken(HR_xgb_model, new_observation = nobs, data = model_matrix_train)
The error is: Error in new_observation[rep(1, nrow(data)), ] : incorrect number of dimensions
Error in new_observation[rep(1, nrow(data)), ] : incorrect number of dimensions
Any idea how I might overcome this? I love your package but I need it to work for xgBoost. Thanks!
Would you share session.info()? Try the latest version 0.1.5 of breakDown, right now it's only on GitHub
Thank you. 0.15 solves the issue I had with the xgBoost example.
Great work!
For your xgBoost example found here: https://pbiecek.github.io/breakDown/articles/break_xgboost.html an error is raised when executing:
explain_xgb <- broken(HR_xgb_model, new_observation = nobs, data = model_matrix_train)
The error is:
Error in new_observation[rep(1, nrow(data)), ] : incorrect number of dimensions
Any idea how I might overcome this? I love your package but I need it to work for xgBoost. Thanks!