早教吧 育儿知识 作业答案 考试题库 百科 知识分享

matlab关于newff>> P=[0 1 2 3 4 5 6 7 8 9 10];>> T=[0 1 2 3 4 3 2 1 2 3 4];>> net=newff([0 10],[5 1],{'tansig''purelin'});接着就出来Error using ==> network.subsasgn"layers{1}.transferFcn" cannot be set to non-existing function "tansig'purelin".

题目详情
matlab关于newff
>> P=[0 1 2 3 4 5 6 7 8 9 10];
>> T=[0 1 2 3 4 3 2 1 2 3 4];
>> net=newff([0 10],[5 1],{'tansig''purelin'});
接着就出来
Error using ==> network.subsasgn
"layers{1}.transferFcn" cannot be set to non-existing function "tansig'purelin".
Error in ==> newff at 145
net.layers{i}.transferFcn = tf{i};
▼优质解答
答案和解析
P=[0 1 2 3 4 5 6 7 8 9 10];
T=[0 1 2 3 4 3 2 1 2 3 4];
net=newff([0 10],[5 1],{'tansig','purelin'});
%你个错误是({'tansig''purelin'});中少了一个逗号