Run Predictions Inside the Database
Checks that the formula can be parsed
Prepares parsed model object
Extract classprob trees for partykit models
Extract processed xgboost trees
Generate trees
Construct a single node of a tree
Knit print method for test predictions results
Converts an R model object into a table.
Turn a path object into an expression
Turn a path object into a combined expression
print method for test predictions results
Objects exported from other packages
Tidy the parsed model results
Returns a Tidy Eval formula to calculate fitted values
Returns a Tidy Eval formula to calculate prediction interval.
Returns a SQL query with formula to calculate predicted interval
Returns a SQL query with formula to calculate fitted values
Tests base predict function against tidypredict
Adds the prediction columns to a piped command set.
tidypredict: Run Predictions Inside the Database
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.
Useful links