Description Usage Arguments Value Examples
This function creates a knn model object.
1 | new_knn_model(data = NULL, design = NULL)
|
data |
Defines the data to be used for the knn model object. |
The new knn model object. This is of classes "knn" and "model". This model object has a boolean indicating it hasn't been fit, a default k value of -1, a default metric of "euclidian, initialized empty values for predicted, truth, and train_data, and the data and design fields set to be equal to the parameters passed into this function.
1 | unfit_mod <- new_knn_model(data=iris, design = Species ~ .)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.