Skip to content

Commit

Permalink
predictions should be a numeric
Browse files Browse the repository at this point in the history
  • Loading branch information
egillax committed Dec 5, 2023
1 parent 46180e4 commit 02d3d44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/Estimator.R
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ predictDeepEstimator <- function(plpModel,
} else {
prediction$value <- plpModel$model$predict_proba(data)
}

prediction$value <- as.numeric(prediction$value)
attr(prediction, "metaData")$modelType <- attr(plpModel, "modelType")

return(prediction)
Expand Down

0 comments on commit 02d3d44

Please sign in to comment.