find.classes(snns)R Documentation

find classes of NN output

Description

If @method equals "WTA" (winner takes all), a softmax function is applied. If the maximum of a row is higher than @low, the corresponding class is assigned.

If @method equals "euclid", the Euclidean distance between the output vector and each code vector is taken and the class corresponding to the nearest code vector is assigned.

If @x is an object of class @nn.pattern, the @code is taken from @x and the function is applied both to outputs and targets.

Usage

find.classes(x, byname=FALSE, method="WTA", low=0, high=0, code=NULL)

Arguments

x matrix with each row corresponding to an encoded class label
byname return the class names instead of class numbers
method either "WTA" or "euclid"
low parameter, usage depends on @method
high parameter, usage depends on @method
code matrix with each row containing the code for one class


[Package Contents]