This function allows for usage of standardized measures from the mlr3proba package with survex
.
loss_adapt_mlr3proba(measure, reverse = FALSE, ...)
a MeasureSurv
object from the mlr3proba
package, the object to adapt
boolean, FALSE by default, whether the metric should be reversed in order to be treated as loss (for permutational variable importance we need functions with lower values indicating better performance). If TRUE, the new metric value will be (1 - metric_value)
other parameters, currently ignored
a function with standardized parameters (y_true
, risk
, surv
, times
) that can be used to calculate loss
if(FALSE){
measure <- msr("surv.calib_beta")
mlr_measure <- loss_adapt_mlr3proba(measure)
}