N4: Nonlinearity of the 1-NN Classifier.

Description Usage Arguments Value

Description

N4 computes the 1-NN error on a test set generated by linear interpolation of points of the same class.

Usage

1
N4(x, y, n = 100)

Arguments

x

A data frame, or an object that can be converted to a data frame, containing only the features of the data.

y

A vector (or factor) determining the class of each example in the data.

n

Number of test points to generate from the input data set.

Value

The 1-NN error computed on a test set generated by linear interpolation of points in the input data set.


RomeroBarata/dcme documentation built on May 9, 2019, 2:24 p.m.