View source: R/data-prep-ranger.R
| hai_ranger_data_prepper | R Documentation |
Automatically prep a data.frame/tibble for use in the Ranger algorithm.
hai_ranger_data_prepper(.data, .recipe_formula)
.data |
The data that you are passing to the function. Can be any type
of data that is accepted by the |
.recipe_formula |
The formula that is going to be passed. For example
if you are using the |
This function will automatically prep your data.frame/tibble for use in the Ranger algorithm.
This function will output a recipe specification.
A recipe object
Steven P. Sanderson II, MPH
https://parsnip.tidymodels.org/reference/rand_forest.html
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_earth_data_prepper(),
hai_glmnet_data_prepper(),
hai_knn_data_prepper(),
hai_svm_poly_data_prepper(),
hai_svm_rbf_data_prepper(),
hai_xgboost_data_prepper()
Other Ranger:
hai_auto_ranger()
library(ggplot2)
library(tibble)
# Regression
hai_ranger_data_prepper(.data = diamonds, .recipe_formula = price ~ .)
reg_obj <- hai_ranger_data_prepper(diamonds, price ~ .)
get_juiced_data(reg_obj)
# Classification
Titanic <- as_tibble(Titanic)
hai_ranger_data_prepper(Titanic, Survived ~ .)
cla_obj <- hai_ranger_data_prepper(Titanic, Survived ~ .)
get_juiced_data(cla_obj)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.