一、BP网络中的函数
1.创建函数
1) cascadeforwardnet函数
cascadeforwardnet(hiddenSizes,trainFcn)
其中参数hiddenSizes为隐含层神经元节点的个数...,如果有多个隐含层,则hiddenSizes是一个行向量,默认值为10;参数trainFcn为训练函数(默认值为trainlm)。...2) feedforwardnet(hiddenSizes,trainFcn)
3) newff函数
4) newcf函数
2.传递函数
1) logsig函数
A = logsig(N,FP):N为SxQ...维的网络输入(列)向量,FP为性能参数
dA_dN = logsig(‘dn’,N,A,FP)
返回A关于N的导数dA_dN,如果A或FP没有给出,则FP返回默认参数
?...=alphabet;
net=newff(minmax(P),[S1 S2],{'logsig','logsig'},'traingdx');
net.LW{2,1}=net.LW{2,1}*0.01;