我想请教一下神经网络的Hopfield网络的逼近要怎样仿真?

来源:百度知道 编辑:UC知道 时间:2024/05/05 18:46:59

参考一下matlab帮助
help newhop
NEWHOP Create a Hopfield recurrent network.

Syntax

net = newhop
net = newhop(T)

Description

Hopfield networks are used for pattern recall.

NET = NEWHOP creates a new network with a dialog box.

NEWHOP(T) takes one input argument,
T - RxQ matrix of Q target vectors. (Values must be +1 or -1.)
and returns a new Hopfield recurrent neural network with
stable points at the vectors in T.

Examples

Here we create a Hopfield network with two three-element
stable points T.

T = [-1 -1 1; 1 -1 1]';
net = newhop(T);

Below we check that the network is stable at these points by
using them as initial layer delay conditions. If the network is
stable we would expect that the outputs Y will be the same.
(Since Hopfield networks have no inputs, the second argument
to SIM is Q = 2 when using matrix notation).