predict.hann1 | R Documentation |
Classification of patterns with Hopfield-based artificial neural networks.
## S3 method for class 'hann1'
predict(object, patterns, rawsignal = TRUE, ...)
## S3 method for class 'hann3'
predict(object, patterns, rawsignal = TRUE, ...)
object |
an object of class |
patterns |
the patterns to be classified. |
rawsignal |
a logical value (see details). |
... |
(ignored). |
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.
If rawsignal = TRUE
a matrix; if rawsignal = FALSE
a vector.
Emmanuel Paradis
hann1
, hann3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.