From 7ffc1f9d122ee425417eb263431578d8f0ddd85a Mon Sep 17 00:00:00 2001 From: Emil Hvitfeldt Date: Fri, 17 Jan 2025 09:19:44 -0800 Subject: [PATCH] pred_log_fold return -Inf instead of "no" to align --- R/sparsevctrs.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/sparsevctrs.R b/R/sparsevctrs.R index 1c970ed..ce0ec1e 100644 --- a/R/sparsevctrs.R +++ b/R/sparsevctrs.R @@ -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 +