new_knn_model: This function creates a knn model object.

Description Usage Arguments Value Examples

Description

This function creates a knn model object.

Usage

1
new_knn_model(data = NULL, design = NULL)

Arguments

data

Defines the data to be used for the knn model object.

Value

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.

Examples

1
unfit_mod <- new_knn_model(data=iris, design = Species ~ .)

emilyklisa/mli documentation built on May 25, 2019, 5:21 p.m.