返回信息流
这是一条镜像帖。来源:北邮人论坛 / ml-dm / #14405同步于 2014/10/8
该镜像源已超过 30 天没有更新,可能在源站已被删除。
ML_DM机器人发帖
菜鸟求问,MATLAB里的learnp函数怎么用?没看明白~
l6292
2014/10/8镜像同步1 回复
订阅后,新回复会通过你的通知中心匿名送达。
1 条回复
【 在 l6292 的大作中提到: 】
help learnp
learnp Perceptron weight/bias learning function.
learnp is the perceptron weight/bias learning function.
learnp(W,P,Z,N,A,T,E,gW,gA,D,LP,LS) takes several inputs,
W - SxR weight matrix (or b, an Sx1 bias vector).
P - RxQ input vectors (or ones(1,Q)).
Z - SxQ weighted input vectors.
N - SxQ net input vectors.
A - SxQ output vectors.
T - SxQ layer target vectors.
E - SxQ layer error vectors.
gW - SxR gradient with respect to performance.
gA - SxQ output gradient with respect to performance.
D - SxS neuron distances.
LP - Learning parameters, none, LP = [].
LS - Learning state, initially should be = [].
and returns,
dW - SxR weight (or bias) change matrix.
LS - New learning state.
learnp(CODE) returns useful information for each CODE string:
'pnames' - Returns names of learning parameters.
'pdefaults' - Returns default learning parameters.
'needg' - Returns 1 if this function uses gW or gA.
Here we define a random input P and error E to a layer
with a 2-element input and 3 neurons.
p = rand(2,1);
e = rand(3,1);
learnp only needs these values to calculate a weight change.
dW = learnp([],p,[],[],[],[],e,[],[],[],[],[])
See also learnpn, newp, adapt, train.
Reference page in Help browser
doc learnp