Skip to content

Instantly share code, notes, and snippets.

@cindyangelira
Last active January 9, 2023 12:12
Show Gist options
  • Save cindyangelira/66c7aa73dfb75f33495a9e9e6cec1e6a to your computer and use it in GitHub Desktop.
Save cindyangelira/66c7aa73dfb75f33495a9e9e6cec1e6a to your computer and use it in GitHub Desktop.
# Benchamrk----
resample <- rsmp("cv", folds = 5)
models <- benchmark_grid(task, learners, resample)
bnchmrk <- benchmark(models)
# Aggregate result
measures <- msrs(c("surv.cindex", "surv.graf"))
bnchmrk$aggregate(measures)
bm <- fortify(bnchmrk)
aggr <- bnchmrk$aggregate(measures)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment