From da0a8588c1ff4cd14d73d588dc150db117317744 Mon Sep 17 00:00:00 2001 From: john Date: Sat, 17 Aug 2024 18:56:10 +0200 Subject: [PATCH] remove comment about stratification --- R/MeasureSurvCindex.R | 2 +- man/mlr_measures_surv.cindex.Rd | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/R/MeasureSurvCindex.R b/R/MeasureSurvCindex.R index f7d63e166..65cd8134c 100644 --- a/R/MeasureSurvCindex.R +++ b/R/MeasureSurvCindex.R @@ -56,7 +56,7 @@ #' library(mlr3) #' task = tsk("rats") #' learner = lrn("surv.coxph") -#' part = partition(task) # train/test split, stratified on `status` by default +#' part = partition(task) # train/test split #' learner$train(task, part$train) #' p = learner$predict(task, part$test) #' diff --git a/man/mlr_measures_surv.cindex.Rd b/man/mlr_measures_surv.cindex.Rd index f4fc2880d..5697b9764 100644 --- a/man/mlr_measures_surv.cindex.Rd +++ b/man/mlr_measures_surv.cindex.Rd @@ -92,7 +92,7 @@ Weighting applied to tied rankings, default is to give them half (0.5) weighting library(mlr3) task = tsk("rats") learner = lrn("surv.coxph") -part = partition(task) # train/test split, stratified on `status` by default +part = partition(task) # train/test split learner$train(task, part$train) p = learner$predict(task, part$test)