Why is fitnet(10) not working ?

Hi,
I have some troubles using the neural network toolbox for my internship at BASF. I am using a Matlab distribution licensed for BASF - no student license. The neural network toolbox is included. When I use the fitnet function (e.g. fitnet(10)) I receive the following error:
"Undefined function or variable 'network'.
Error in feedforwardnet>create_network (line 101) net = network;
Error in feedforwardnet (line 69) net = create_network(param);
Error in fitnet>create_network (line 98) net = feedforwardnet(param.hiddenSizes,param.trainFcn);
Error in fitnet (line 70) net = create_network(param);"
I already deleted some shadow mse:
">> which -all mse C:\Program Files\MATLAB\R2013b\toolbox\nnet\nnet\nnperformance\mse.m"
The version of the toolbox is recent, so no need to update.
But the problem is still there. Could you help me about that ?
Best regards, Jan

 采纳的回答

fitnet(10)
is enough of example code for a start. Please check licensing and installation first:
license('test', 'neural_network_toolbox')
Should return:
ans =
1
And the result of the "ver" command should have a line like this:
Neural Network Toolbox Version 8.2.1 (R2014b)

1 个评论

license shows 1.
the ver shows 8.0 R2012b.
but when i type fitnet(10) i get the following error
Error using feval
Undefined function 'initlay' for input arguments of type 'struct'.
Error in nn_configure_bias (line 13)
net = feval(net.initFcn,'initialize',net,'b',i);
Error in network/subsasgn>setBiasConnect (line 771)
net = nn_configure_bias(net,i);
Error in network/subsasgn>network_subsasgn (line 59)
if isempty(err), [net,err]=setBiasConnect(net,biasConnect); end
Error in network/subsasgn (line 13)
net = network_subsasgn(net,subscripts,v,netname);
Error in feedforwardnet>create_network (line 104)
net.biasConnect = true(Nl,1);
Error in feedforwardnet (line 69)
net = create_network(param);
Error in fitnet>create_network (line 98)
net = feedforwardnet(param.hiddenSizes,param.trainFcn);
Error in fitnet (line 70)
net = create_network(param);
please help

请先登录,再进行评论。

更多回答(1 个)

jan alberts
jan alberts 2015-1-28

0 个投票

'license ...' returns 'ans = 0'
but 'ver' links to 'Neural Network Toolbox'

2 个评论

Then it is installed, but not licensed. Can be a couple of reasons. Like a trial, but it was not purchased. Or a larger network license where IT installed all the same on all machines, but some products are only available for one department.
You can send me a PN with your license number and I will help you with that.
hi Andreas, I have the same problem can you please help me? thank you.

请先登录,再进行评论。

类别

帮助中心File Exchange 中查找有关 Deep Learning Toolbox 的更多信息

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by