net = knn(nin, nout, k, tr_in, tr_targets)
net = knn(nin, nout, k, tr_in, tr_targets)creates a KNN model
netwith input dimension
nin, output dimension
kneighbours. The training data is also stored in the data structure and the targets are assumed to be using a 1-of-N coding.
The fields in
type = 'knn' nin = number of inputs nout = number of outputs tr_in = training input data tr_targets = training target data
Copyright (c) Ian T Nabney (1996-9)