fnn_pred: Nearest neighbors prediction using FNN

View source: R/fnn.R

fnn_predR Documentation

Nearest neighbors prediction using FNN

Description

'fnn_pred' is a wrapper for 'FNN' fast nearest neighbor models

Usage

fnn_pred(object, newdata, prob = FALSE, ...)

Arguments

object

parsnip model spec.

newdata

data.frame or matrix of training data.

prob

logical return predicted probability of the winning class, default = FALSE.

...

additional arguments to pass to FNN, currently unused.

Value

data.frame containing the predicted results.


stevenpawley/parsnipExtra documentation built on May 28, 2022, 9:38 a.m.