Skip to content

Commit

Permalink
support tidymodels and multiple outputs in predict.cube [experimental]
Browse files Browse the repository at this point in the history
  • Loading branch information
appelmar committed Jan 31, 2024
1 parent c6eb0bc commit cccbc94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inst/scripts/f_predict.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ out = array(NA, dim=c(length(output_names),nobs))
if (is.list(p)) {
for (i in 1:length(output_names)) {
z = p[[output_names[i]]]
if (!is.numeric(z) && is.factor(z)) {
if (!is.numeric(z) && !is.factor(z)) {
stop("Unexpected output from predict().")
}
out[i,idx] = as.numeric(z)
Expand Down

0 comments on commit cccbc94

Please sign in to comment.