Learn R Programming

ssc (version 1.0)

oneNN: 1-NN supervised classifier builder

Description

Build a model using the given data to be capable of predict the label or the probabilities of other instances, according to 1-NN algorithm.

Usage

oneNN(x = NULL, y)

Arguments

x
This argument is not used, the reason why he gets is to fulfill an agreement
y
a vector with the labels of training instances

Value

A model wish the data needed to use 1-NN