Last active
May 9, 2023 21:32
-
-
Save RaphaelS1/53f602304b9d19124372c9e0d0130155 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## select holdout as the resampling strategy | |
resampling <- rsmp("cv", folds = 3) | |
## add KM and CPH | |
learners <- c(learners, lrns(c("surv.kaplan", "surv.coxph"))) | |
design <- benchmark_grid(tasks, learners, resampling) | |
bm <- benchmark(design) | |
## Aggreggate with Harrell's C and Integrated Graf Score | |
msrs <- msrs(c("surv.cindex", "surv.graf")) | |
bm$aggregate(msrs)[, c(3, 4, 7, 8)] |
Thanks Raphael, I fixed this problem by upgrading the ''mlr3proba" package. However, this is another error from the "coxtime" model as follows.
Error in py_call_impl(callable, dots$args, dots$keywords) :
AttributeError: 'Series' object has no attribute 'iteritems'
This happened PipeOp surv.coxtime.tuned's $train()
When I remove the "coxtime" model from the learners list, everything is OK.
Great! Strange I've never seen that error before... Looks like it's in the underlying {pycox} implementation. Maybe try reinstalling pycox?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @lxtpvt this is an error on the pyrthon side, I think possibly you might just need to restart your session and the error will clear itself. Does this issue help? There's lots of other similar ones associated with
pytorch
if you Google "RuntimeError: CUDA error: unspecified launch failure"