I'm trying to run the code from the documentation of Matlab on how to implement a neural network using the parallel processing toolbox and I get the following error.
Error :
Error using trainlm (line 104) Input states Xi is not a matrix or cell array.
Error in network/train (line 106) [net,tr] = feval(net.trainFcn,net,X,T,Xi,Ai,EW,net.trainParam);
Code:
[x,t] = house_dataset;
net1 = feedforwardnet(10);
y = net2(x);
net2 = train(net1,x,t);
matlabpool open;
net2 = train(net1,x,t,'useParallel','yes');
matlabpool close;
Does anyone know how to fix this ?