We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6bf39b5 commit b7a5994Copy full SHA for b7a5994
R/predict.R
@@ -470,6 +470,10 @@ prepare_data <- function(object, new_data) {
470
if (allow_sparse(object) && inherits(new_data, "dgCMatrix")) {
471
return(new_data)
472
}
473
+ if (allow_sparse(object) && is_sparse_tibble(new_data)) {
474
+ new_data <- sparsevctrs::coerce_to_sparse_matrix(new_data)
475
+ return(new_data)
476
+ }
477
478
fit_interface <- object$spec$method$fit$interface
479
switch(
0 commit comments