Skip to content

Commit

Permalink
Update R/learner_BART_surv_bart.R
Browse files Browse the repository at this point in the history
Co-authored-by: Sebastian Fischer <[email protected]>
  • Loading branch information
bblodfon and sebffischer authored Aug 21, 2023
1 parent 387a41e commit f18d2d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/learner_BART_surv_bart.R
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ delayedAssign(
#' @param type Can be either `count` or `prob`.
#' @return Named `numeric()`.
importance = function(type = 'count') {
if (!type %in% c('prob', 'count')) stopf("type can be only 'prob' or 'count'")
assert_choice(type, c("prob", "count"))

if (is.null(self$model)) {
stopf("No model stored")
Expand Down

0 comments on commit f18d2d9

Please sign in to comment.