Automatically prep a data.frame/tibble for use in the Earth algorithm.
hai_earth_data_prepper(.data, .recipe_formula)
A recipe object
The data that you are passing to the function. Can be any type
of data that is accepted by the data
parameter of the recipes::reciep()
function.
The formula that is going to be passed. For example
if you are using the diamonds
data then the formula would most likely be something
like price ~ .
Steven P. Sanderson II, MPH
This function will automatically prep your data.frame/tibble for use in the Earth algorithm. The Earth algorithm is for classification and regression.
This function will output a recipe specification.
Other Preprocessor:
hai_c50_data_prepper()
,
hai_cubist_data_prepper()
,
hai_data_impute()
,
hai_data_poly()
,
hai_data_scale()
,
hai_data_transform()
,
hai_data_trig()
,
hai_glmnet_data_prepper()
,
hai_knn_data_prepper()
,
hai_ranger_data_prepper()
,
hai_svm_poly_data_prepper()
,
hai_svm_rbf_data_prepper()
,
hai_xgboost_data_prepper()
Other Earth:
hai_auto_earth()
library(ggplot2)
# Regression
hai_earth_data_prepper(.data = diamonds, .recipe_formula = price ~ .)
reg_obj <- hai_earth_data_prepper(diamonds, price ~ .)
get_juiced_data(reg_obj)
# Classification
hai_earth_data_prepper(Titanic, Survived ~ .)
cla_obj <- hai_earth_data_prepper(Titanic, Survived ~ .)
get_juiced_data(cla_obj)
Run the code above in your browser using DataLab