Run Predictions Inside the Database
Checks that the formula can be parsed
Prepares parsed model object
Knit print method for test predictions results
Converts an R model object into a table.
print method for test predictions results
Objects exported from other packages
Tidy the parsed model results
tidypredict: Run Predictions Inside the Database
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 fitted values
Returns a SQL query with formula to calculate predicted interval
Tests base predict function against tidypredict
Adds the prediction columns to a piped command set.
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