Skip to content

Commit 81d357c

Browse files
committed
Fix brace in documentation
1 parent d4c5290 commit 81d357c

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

R/metrics.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,7 @@ attr(loss_integrated_brier_score, "loss_type") <- "integrated"
458458
#'
459459
#' @return a function with standardized parameters (`y_true`, `risk`, `surv`, `times`) that can be used to calculate loss
460460
#'
461+
#' @examples
461462
#' if(FALSE){
462463
#' measure <- msr("surv.calib_beta")
463464
#' mlr_measure <- loss_adapt_mlr3proba(measure)
@@ -483,7 +484,6 @@ loss_adapt_mlr3proba <- function(measure, reverse = FALSE, ...) {
483484

484485
return(output)
485486
}
486-
487487
if (reverse) {
488488
attr(loss_function, "loss_name") <- paste("one minus", measure$id)
489489
} else {

man/loss_adapt_mlr3proba.Rd

+7-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)