Classification of patterns with Hopfield-based artificial neural networks.
# S3 method for hann1
predict(object, patterns, rawsignal = TRUE,
useLabels = TRUE, ...)
# S3 method for hann3
predict(object, patterns, rawsignal = TRUE,
useLabels = TRUE, ...)If rawsignal = TRUE a matrix; if rawsignal = FALSE a vector.
an object of class "hann1" or "hann3".
the patterns to be classified.
a logical value (see details).
a logical value whether to use the labels of the classes (if any) as colnames of the predictions.
(unused).
The patterns have to be coded in the same way than the matrix
xi used to train the networks.
If rawsignal = TRUE, the raw signal of each neuron is output
for each pattern. Otherwise, a classification of each pattern is done
by finding the neuron with the largest signal.
hann1, hann3