mlr3pipelines
to Imports
and set minimum latest version from CRAN (0.7.0
)mlr3pipelines::
or R6::
scale_lp
for AFT distrcompose
pipeop + respective pipelinePipeOp
s: PipeOpTaskSurvClassifIPCW
, PipeOpPredClassifSurvIPCW
pipeline_survtoclassif_IPCW
times
argument and the t_max
, especially when the survival matrix has one time point (column)lifecycle
badge for 3 pipelines (survtoregr
, distrcompositor
and probregr
) - these are currently either not supported by literature or tested enough.Rcpp
code optimizationsmlr3
dev version (no bugs before)survtoregr
pipelines due to bugs (to be refactored in the future)crank
to distr
composition in distrcompose
pipeop (only from lp
=> distr
works now)get_mortality()
function (from survivalmodels::surv_to_risk()
assert_surv_matrix()
crankcompose
pipeop and respective pipeline (no response
is created anymore)responsecompositor
pipeline with rmst
and median
PipeOp
s: PipeOpTaskSurvClassifDiscTime
, PipeOpPredClassifSurvDiscTime
pipeline_survtoclassif_disctime
survival
package: veteran
, pbc
, mgus
, gbsg
task$help()
works as it should nowcoxed
packageTaskSurv
: cens_prop()
, admin_cens_prop()
, dep_cens_prop()
and prop_haz()
surv.cindex
measure
p_max
(same as surv.graf
)cutoff
to t_max
t_max
in surv.graf
and similar time-integrated scores.surv.logloss
and calib_alpha
measures (bypassing distr6
)calib_alpha
, surv.logloss
and surv.graf
(version with proper = FALSE)distrcompositor
and crankcompositor
deprecated functions were completely removedphash
warning and Inf
lp predictions)breslow
function for estimating the cumulative baseline hazard of proportional hazard modelsPipeOpBreslow
to wrap a survival learner and generate distr
predictions from lp
predictionsbreslow
estimator option in distrcompositor
extend_quantile
to autoplot.PredictionSurv
for type = "dcalib"
, which imputes NAs with the maximum observed survival timeautoplot.PredictionSurv
, now "calib"
msr("surv.dcalib")
default for truncate
to Inf
$reverse()
method to TaskSurv
, which returns the same task but with 1-status.reverse
parameter to TaskSurv$kaplan()
method, which calculates Kaplan-Meier on the censoring distribution of the task (1-status).distr6::Arrdist
plot_probregr
for plotting probabilistic regression distribution predictionssurv.rcll
creating erroneous results as distributions were not being subsetted correctlyregr.logloss
PipeOpProbregrCompositor
to PipeOpProbregr
and default distribution now "Uniform"
.probregrcompositor
pipeline to probregr
and default distribution now "Uniform"
.surv.rcll
when individual scores are NA
.theme_mlr3
from plots.surv.logloss
when using IPCW = TRUE
surv.cindex
caused when probability of censoring was 0. Added eps
parameter to control this.PredictionSurv
ERV
parameter to scoring rule measures to return more interpretable scoring rules. Explained Residual Variation is the percentage decrease between a scoring rule comparing a Kaplan-Meier baseline to the learner of interest.model
now called keep_model
.TaskSurv$kaplan
methodsimsurv
task that made it impossible to predict the target$distr
called for a learner that does not support this return typeas_task_dens
and as_prediction_dens
t_max
and p_max
to Graf, Schmid and Integrated Log-loss as an alternative to times
. t_max
is equivalent to times = seq(t_max)
and p_max
is the proportion of censoring to integrate up to in the dataset.mlr3extralearners
from Suggestsresponse
to as_prediction_surv
assert_surv
mlr3
is now in Depends
not imports
distr
predictions are now internally stored as matrices to significantly reduce prediction object sizessurv.graf
, surv.schmid
, and surv.intlogloss
now allow training data to be passed to the score function with task
and train_set
to allow the censoring distribution to be estimated on the training data. This is automatically applied for resample and benchmark results.surv.graf
, surv.schmid
, and surv.intlogloss
now include a parameter proper
to determine what weighting scheme should be applied by the estimated censoring distribution, The current method (Graf, 1999) proper = FALSE
, weights observations either by their event time or 'current' time depending if they're dead or not, the new method proper = TRUE
weights observations by event time. The proper = TRUE
method is strictly proper when censoring and survival times are independent and G is estimated on large enough data. The proper = FALSE
method is never proper. The default is currently proper = FALSE
to enable backward compatibility, this will be changed to proper = TRUE
in v0.6.0.rm_cens
parameter in surv.logloss
has been deprecated in favour of IPCW
. rm_cens
will be removed in v0.6.0. If rm_cens
or IPCW
are TRUE
then censored observations are removed and the score is weighted by an estimate of the censoring distribution at individual event times. Otherwise if rm_cens
and IPCW
are FALSE
then no deletion or weighting takes place. The IPCW = TRUE
method is strictly proper when censoring and survival times are independent and G is estimated on large enough data. The ipcw = FALSE
method is never proper.surv.dcalib
for the D-Calibration measure from Haider et al. (2020)."interval2"
task type not to work$aggregate
"interval2"
TaskSurv
including times
(observed survival times), status
(observed survival indicator), unique_times
(set of sorted unique outcome times), unique_event_times
(set of sorted unique failure times), risk_set
(set of observations alive 'just before' a given time)"interval2"
censoring type has been removed from TaskSurv
as this is covered by the other typestime
and event
arguments in TaskSurv
PredictionDens
can now include distr
return type (equivalent to learner$model
)PipeOpCrankCompositor
updated to fix bottleneck in computation via mean
. Now Inf
or NA
is replaced by 0
for response
and imputed with the median for crank
distr
predict types fixed that lead to fitting degenerate distributions and returning incorrect values for mean survival time and crank
compose_crank
was previously returning ranks with the reverse ordering so that higher ranks implied higher risk not lower.MeasureSurvLogloss
MeasureSurvCalibrationAlpha
TaskDens
now inherits from TaskUnsupervised
which means target
/truth
has been removed. No specification of a target
column is required, instead a one-column matrix-like object or numeric vector should be passed to the task backend
and the density will be estimated for this column, or two columns and one set as weight
.load_eruption
to fix name of data columnspracma
dependency in learnersPipeOpDistrCompositor
, previously base distribution was only using the first predicted distribution, now the baseline is taken by averaging over all predictions with uniform weightsLearnerDensityKDE
is now Epan
to reduce importsMeasureSurvCalibrationBeta
now returns NA
not error if lp
predict type not availablePredictionRegr
causing masking issues with {mlr3}
PipeOpDistrCompositor
causing some cdf
predictions to be lostmlr3pipelines
: public train and predict methods to privategrace
, actg
, gbcs
, whas
overwrite
to crankcompositor
pipeop and pipelinesurv.kaplan
crank
predictionMeasureSurvCindex
added. Generalises all c-index measures with a fast C++ implementationmlr3learners/mlr3learners.proba
MeasureSurvSchmid
MeasureSurvCalibrationBeta
and MeasureSurvCalibrationAlpha
surv.brier
alias added for surv.graf
response
parameter added to PipeOpCrankCompositor
and crankcompositor
to now optionally fill response
predict type with same values as crank
PipeOpProbregrCompostior
and compose_probregr
for composition to distr
return type from (a) regression learner(s) predicting response
and se
PipeOpSurvAvg
and surv_averager
pipeline for weighted model averaging of distr, lp, crank, and response predictions.MeasureSurvCindex
instead with following parameters: MeasureSurvBeggC
, use defaults; MeasureSurvHarrellC
, use defaults; MeasureSurvUnoC
, use weight_meth = 'G/2'
; MeasureSurvGonenC
, use weight_method = 'GH'
MeasureSurvGrafSE
, MeasureSurvLoglossSE
, MeasureSurvIntLoglossSE
, MeasureSurvRMSESE
, MeasureSurvMSESE
, and MeasureSurvMAESE
all deprecated and will be deleted in v0.4.0. Use msr("surv.graf", se = TRUE)
instead (for example).surv.nagelkR2
is now surv.nagelk_r2
, analogously for all R2, AUC, TPR, and TNR measures. Old constructors will be deleted in v0.4.0.distrcompose
and crankcompose
to distr_compose
and crank_compose
. Old ids will be deleted in v0.4.0.surv.nagelkR2
is now surv.nagelk_r2
, analogously for all R2, AUC, TPR, and TNR measures. Old constructors will be deleted in v0.4.0.MeasureSurvGraf
and MeasureSurvIntLogloss
now have much faster C++ implementationLearnerSurvGlmnet
, LearnerSurvCVGlmnet
, LearnerSurvXgboost
and LearnerSurvRanger
have been moved to mlr-org/mlr3learners
LearnerSurvGBM
has been moved to https://www.github.com/mlr3learners/mlr3learners.gbm
LearnerSurvMboost
, LearnerSurvGlmBoost
, LearnerSurvGamboost
, LearnerSurvBlackboost
have been moved to https://www.github.com/mlr3learners/mlr3learners.mboost
mboost
family of learners: added gehan
family, fixed parameters for cindex
, added support for: weights
, response
predict type, importance
, selected_features
LearnerDensHist
and LearnerDensKDE
have been moved to the mlr3learners org
mlr3learners org
, LearnerSurv: Flexible
, ObliqueRSF
, Penalized
, RandomForestSRC
LearnerSurvXgboost
previously lp
was erroneously returned as exp(lp)
LearnerSurvParametric
and LearnerSurvNelson
moved to mlr3learners/mlr3learners.survival
repoLearnerSurvCoxboost
and LearnerSurvCVCoxboost
moved to mlr3learners/mlr3learners.coxboost
repoLearnerSurvSVM
moved to mlr3learners/mlr3learners.survivalsvm
repoLearnerSurvKaplan
, LearnerSurvCoxPH
, and LearnerDensHist
will be moved to the mlr3learners
orgTaskDens
, LearnerDens
, PredictionDens
, and MeasureDens
.mlr_tasks_faithful
and mlr_tasks_precip
for density task examplesmlr_task_generators_simdens
for generating density tasksmlr3::mlr_learners$keys("^dens")
for the full listtrain_internal
, predict_internal
, score_internal
are now private methods .train
,.predict
,.score
lp
in surv.parametric
to include the intercept, which is in line with survival::survreg
. Now exp(pred$lp)
is equal to the predicted survival time for AFTsmboost
to suggests
response
predict type, which predicts the time until event. Currently only supported for AFT models in surv.parametric
response
predict type: MeasureSurvMAE, MeasureSurvMAESE, MeasureSurvMSE, MeasureSurvMSESE, MeasureSurvRMSE, MeasureSurvRMSESE
mode
option to crankcompositor
R62S3
incompatibilitymethod
argument to integrated scores and added weighting by bin-widthmethod
to MeasureSurvIntegrated
constructor and fieldsTaskSurv
, MeasureSurvUnoC
LearnerSurvRpart
parameter parms
and cost