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

predict_parts with mlr3 #24

Closed
hbaniecki opened this issue Jan 13, 2023 · 1 comment
Closed

predict_parts with mlr3 #24

hbaniecki opened this issue Jan 13, 2023 · 1 comment
Labels
bug 💣 Bug to fix

Comments

@hbaniecki
Copy link
Member

library(mlr3proba)
library(mlr3extralearners)
library(mlr3pipelines)
library(survex)
library(survival)
veteran_task <- as_task_surv(veteran,
                             time = "time",
                             event = "status",
                             type = "right")
ranger_learner <- lrn("surv.ranger")    
ranger_learner$train(veteran_task)
ranger_learner_explainer <- explain(ranger_learner, 
                                    data = veteran[, -c(3,4)],
                                    y = Surv(veteran$time, veteran$status),
                                    label = "Ranger model")
# error
pp <- predict_parts(ranger_learner_explainer,
                    ranger_learner_explainer$data[1,])
@hbaniecki hbaniecki added the bug 💣 Bug to fix label Jan 13, 2023
@hbaniecki
Copy link
Member Author

mlr-org/mlr3proba#307

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

No branches or pull requests

1 participant