I'd like to test out your addin but i get the following error in Matlab 2012a
??? Error using ==> trainpso at 54
Error in ==> network.subsasgn>setTrainFcn at 2016
net.trainParam = feval(trainFcn,'defaultParam');
Error in ==> network.subsasgn>network_subsasgn at 462
if isempty(err), [net,err]=setTrainFcn(net,trainFcn); end
Error in ==> network.subsasgn at 11
net = network_subsasgn(net,subscripts,v,netname);
Error in ==> NN_training_demo at 20
net.trainFcn = 'trainpso'; %set the NN training function to use a PSO approach.
The name 'trainpso' is used for consistency with previous research (B. Birge,
How to fix this error?
am using NN_training_demo nad getting the same problem with psotrain it seems unidentifed by NN toolbox. i run it on matlab 2012a. my PSO toolbox was obtained from the same link provided above by Tricia. please help
Dear Tricia Rambharose
i am also using same toolbox and your add in but i facing some many errors.
when i compile trainpso file that gives
Error using trainpso (line 25)
Not enough input arguments.
function [net, tr] = trainpso(net, tr, trainV, valV, testV, varargin)
and when i use this tool box to train the network for my own model even working on trainlm but doesn't work on trainpso and gives following error.
SWITCH expression must be a scalar or string constant.
Error in network/subsref (line 140)
Error in trainpso (line 65)
max_perf_inc = net.trainParam.max_perf_inc;
Error in LoadScriptNN (line 84)
net = trainpso(net, trainX', trainY');
pleas reply me asap.
i am very very very grateful to you for this.
i am waiting for reply