Automatically prep a data.frame/tibble for use in the k-NN algorithm.
Usage
hai_knn_data_prepper(.data, .recipe_formula)
Value
A recipe object
Arguments
.data
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.
.recipe_formula
The formula that is going to be passed. For example
if you are using the iris data then the formula would most likely be something
like Species ~ .
Author
Steven P. Sanderson II, MPH
Details
This function will automatically prep your data.frame/tibble for
use in the k-NN algorithm. The k-NN algorithm is a lazy learning classification
algorithm. It expects data to be presented in a certain fashion.