Skip to content

Commit 7ffc1f9

Browse files
committed
pred_log_fold return -Inf instead of "no" to align
1 parent 56304cd commit 7ffc1f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/sparsevctrs.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ allow_sparse <- function(x) {
4141

4242
pred_log_fold <- function(sparsity, model, n_rows) {
4343
if (is.null(model) || model == "ranger") {
44-
return("no")
44+
return(-Inf)
4545
}
4646

4747
log_fold <- -0.599333138645995 +

0 commit comments

Comments
 (0)