【发布时间】:2015-12-03 06:15:36
【问题描述】:
我在我的一门 AI 课程中看到了以下说明:
net = newp([-2 2;-2 2],2])
net.IW {1,1} = [-1 1; 3 4]
net.b{1} = [-2,3]
神经网络看起来如何?感知器有2个神经元?
【问题讨论】:
标签: 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个神经元?
【问题讨论】:
标签: matlab artificial-intelligence perceptron
查看它的最简单方法是通过:
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]。
这是否为您澄清了事情?
【讨论】: