Skip to content

Commit

Permalink
pred_log_fold return -Inf instead of "no" to align
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilHvitfeldt committed Jan 17, 2025
1 parent 56304cd commit 7ffc1f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/sparsevctrs.R
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ allow_sparse <- function(x) {

pred_log_fold <- function(sparsity, model, n_rows) {
if (is.null(model) || model == "ranger") {
return("no")
return(-Inf)
}

log_fold <- -0.599333138645995 +
Expand Down

0 comments on commit 7ffc1f9

Please sign in to comment.