Skip to content

Commit

Permalink
refine comment for missing lp predictions
Browse files Browse the repository at this point in the history
  • Loading branch information
bblodfon committed Dec 28, 2023
1 parent 9b6d4d0 commit b6cc254
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/PipeOpBreslow.R
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ PipeOpBreslow = R6Class("PipeOpBreslow",
# predictions on the train set
p = learner$predict(task)

# Breslow works only with `lp` predictions (not crank)
# Breslow works only with non-NA `lp` predictions
if (anyMissing(p$lp)) {
stopf("Missing lp predictions")
}
Expand Down Expand Up @@ -150,7 +150,7 @@ PipeOpBreslow = R6Class("PipeOpBreslow",
if ("distr" %in% learner$predict_types & !overwrite) {
pred = list(p)
} else {
# missing lp
# Breslow works only with non-NA `lp` predictions
if (anyMissing(p$lp)) {
stopf("Missing lp predictions!")
}
Expand Down

0 comments on commit b6cc254

Please sign in to comment.