《量化投资:以MATLAB为工具》

MATLAB技术论坛

 找回密码
 注册账号
查看: 594|回复: 0
收起左侧

[提问] Matlab神经网络训练问题求助

[复制链接]
发表于 2017-7-25 06:03:52 | 显示全部楼层 |阅读模式
我使用MATLAB神经网络工具箱进行训练的时候总是会遇到一下错误:

Error using struct
Conversion to struct from char is not possible.
Error in network/subsasgn>getDefaultParam (line 2048)
    param = struct(feval(fcn,'defaultParam'));
Error in network/subsasgn>newLayer (line 2304)
x.transferParam = getDefaultParam('purelin');
Error in network/subsasgn>network_subsasgn (line 21)
  FIELD_NAMES.layer = fieldnames(newLayer);
Error in network/subsasgn (line 13)
net = network_subsasgn(net,subscripts,v,netname);
Error in network>setnet (line 178)
net = subsasgn(net,subscripts,value);
Error in network>new_network (line 168)
net = setnet(net,'numInputs',numInputs);
Error in network (line 71)
  net = new_network(varargin{:});
Error in newff>new_5p0 (line 275)
net = network(1,Nl);
Error in newff>create_network (line 127)
  net = new_5p0(varargin{:});
Error in newff (line 101)
  out1 = create_network(varargin{:});
Error in ANNBP (line 23)
net=newff(MM,[no,dem-1],{'tansig','purelin'},'trainlm');

这个问题已经困扰我好几天了,一直解决不了,不知道是什么原因,求助各位大牛,希望能得到解决办法。

多谢!
您需要登录后才可以回帖 登录 | 注册账号

本版积分规则

QQ|网站地图|MATLAB技术论坛|Simulink仿真论坛 ( 蜀ICP备19014457号 

GMT+8, 2020-2-18 08:55 , Processed in 0.072893 second(s), 21 queries , Gzip On.

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表