net = knn(nin, nout, k, tr_in, tr_targets)
net = knn(nin, nout, k, tr_in, tr_targets) creates a KNN model net
with input dimension nin, output dimension nout and k
neighbours. 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 net are
type = 'knn' nin = number of inputs nout = number of outputs tr_in = training input data tr_targets = training target data
kmeans, knnfwdCopyright (c) Ian T Nabney (1996-9)