predict.hann1: Prediction

View source: R/hann1.R

predict.hann1R Documentation

Prediction

Description

Classification of patterns with Hopfield-based artificial neural networks.

Usage

## S3 method for class 'hann1'
predict(object, patterns, rawsignal = TRUE, ...)
## S3 method for class 'hann3'
predict(object, patterns, rawsignal = TRUE, ...)

Arguments

object

an object of class "hann1" or "hann3".

patterns

the patterns to be classified.

rawsignal

a logical value (see details).

...

(ignored).

Details

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.

Value

If rawsignal = TRUE a matrix; if rawsignal = FALSE a vector.

Author(s)

Emmanuel Paradis

See Also

hann1, hann3


hann documentation built on Aug. 8, 2025, 7:16 p.m.