a function with standardized parameters (y_true, risk, surv, times) that can be used to calculate loss
Arguments
measure
a MeasureSurv object from the mlr3proba package, the object to adapt
reverse
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)