Matlab神经网络

时间:2015-09-07 16:33:57

标签: matlab artificial-intelligence perceptron

我在我的一个AI课程中看到了以下说明:

net = newp([-2 2;-2 2],2])
net.IW {1,1} = [-1 1; 3 4]
net.b{1} = [-2,3]

神经网络看起来如何?感知器有2个神经元?

1 个答案:

答案 0 :(得分:2)

最简单的方法是通过:

view(net) 

在那里你可以看到输入输出和图层的数量。您也可以查看

help netp

命令的文档,并在那里说

 NET = newp(P,T,TF,LF) takes these inputs,
       P  - RxQ matrix of Q1 representative input vectors.
       T  - SxQ matrix of Q2 representative target vectors.
       TF - Transfer function, default = 'hardlim'.
       LF - Learning function, default = 'learnp'.

net.iw {1,1}将输入的权重设置为所选的数字 amd net.b {1}将网络的偏差设置为向量[-2,3]。

这是否为您解决了问题?

相关问题