N3: Error Rate of 1-NN Classifier.

Description Usage Arguments Value

Description

N3 computes the error rate of the 1-NN classifier using the leave-one-out strategy.

Usage

1
N3(x, y)

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.

Value

The leave-one-out error estimate of the 1-NN classifier for the input data set.


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