Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Package: tidypredict
Version: 0.4.8.9000
Version: 0.4.8.9001
Title: Run Predictions Inside the Database
Description: It parses a fitted 'R' model object, and returns a formula
in 'Tidy Eval' code that calculates the predictions.
It works with several databases back-ends because it leverages 'dplyr'
and 'dbplyr' for the final 'SQL' translation of the algorithm. It currently
supports lm(), glm(), randomForest(), ranger(), earth(), xgb.Booster.complete(),
cubist(), and ctree() models.
cubist(), and ctree() models.
Authors@R:
person("Max", "Kuhn", email = "max@rstudio.com", role = c("aut", "cre"))
Depends:
Expand Down
2 changes: 1 addition & 1 deletion R/model-xgboost.R
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ get_xgb_case <- function(path, prediction, digits = NA) {
get_xgb_case_tree <- function(tree_no, parsedmodel, digits = NA) {
purrr::map(
parsedmodel$trees[[tree_no]],
~ get_xgb_case(.x$path, .x$prediction, digits)
~ get_xgb_case(.x$path, round(.x$prediction, 3), digits)
)
}

Expand Down