Rank: 916 based on 76 downloads (last 30 days) and 1 file submitted
photo

Tricia Rambharose

E-mail
Company/University
The University of the West Indies, Athabasca University

Personal Profile:

http://www.tricia-rambharose.com/

Professional Interests:
Computational intelligence-based personalization of user-adaptive web-based interactive systems

 

Watch this Author's files

 

Files Posted by Tricia
Updated   File Tags Downloads
(last 30 days)
Comments Rating
11 Jan 2011 Screenshot Neural Network add-in for PSORT This add-in allows a Neural Network to be trained by Particle Swarm Optimization technique. Author: Tricia Rambharose neural network, particle swarm optimi..., optimization, tricia rambharose 76 18
  • 3.0
3.0 | 1 rating
Comments and Ratings by Tricia View all
Updated File Comments Rating
23 Nov 2011 Neural Network add-in for PSORT This add-in allows a Neural Network to be trained by Particle Swarm Optimization technique. Author: Tricia Rambharose

Hi Chan,

I tried the code again with Matlab 2008a and it works fine for me. Your error simply means that in the function 'trainpso.m' the variable 'net' can not be found or read. This will happen if a call to 'clear net' or 'clear all' was made.

I advise you to train using the original code again and becareful when making modifications.

Good luck!

28 Jun 2011 Neural Network add-in for PSORT This add-in allows a Neural Network to be trained by Particle Swarm Optimization technique. Author: Tricia Rambharose

Thanks for informing me of this error. I will work on this and get back to you asap.

21 Jun 2011 Neural Network add-in for PSORT This add-in allows a Neural Network to be trained by Particle Swarm Optimization technique. Author: Tricia Rambharose

Hi Krystian,

Thank you for the question. Yes it seems to be a small compatibility issue. By now have you fixed this? If not I will work on fixing it asap and get back to you.

07 Dec 2010 Neural Network add-in for PSORT This add-in allows a Neural Network to be trained by Particle Swarm Optimization technique. Author: Tricia Rambharose

Hi Manish,

You get this error because you need to download the PSO toolbox and set the path in MATLAB. This is explained in the README file in this add-in, however for your convenience here is what you need to do to fix this error:
1. Download the PSO toolbox at http://www.mathworks.com/matlabcentral/fileexchange/28291-particle-swarm-optimization-research-toolbox.

2. Unzip the downloaded file.

3. On the MATLAB interface go to file -> set path -> add with subfolders. Then find the location of the unzipped downloaded file. -> Save

By following these steps MATLAB should recognise the Control_panel function.

Lte me know if this helps.

29 Nov 2010 Particle Swarm Optimization Toolbox With Trelea, Common, and Clerc types along with ... Author: Brian Birge

Good day users,

A PSO toolbox which can be used for NN trainig, and works with the latests versions of MATLAB, is now available on MathWorks.

The PSO toolbox is found at:
http://www.mathworks.com/matlabcentral/fileexchange/28291-particle-swarm-optimization-research-toolbox

The NN add-in for this PSO toolbox is found at: http://www.mathworks.com/matlabcentral/fileexchange/29565-neural-network-add-in-for-psort

Regards,
Tricia

Regards,
Tricia

Comments and Ratings on Tricia's Files View all
Updated File Comment by Comments Rating
21 Dec 2011 Neural Network add-in for PSORT This add-in allows a Neural Network to be trained by Particle Swarm Optimization technique. Author: Tricia Rambharose rekoba

hi Tricia thanks for you code but i have this error

??? Error using ==> trainpso at 54
Unrecognized code.

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,
2005)

30 Nov 2011 Neural Network add-in for PSORT This add-in allows a Neural Network to be trained by Particle Swarm Optimization technique. Author: Tricia Rambharose chan

Hi Tricia,

Thank for ur reply. i tried to run the original code again but still get error~ ==''

========================================
Neural Network (NN) settings:
NN training function:trainpso
NN layers:2
NN training goal:0.001
NN maximum epochs:1000
NN maximum time:Inf
Plot PSO training:1
AUTOMATIC INPUT VALIDATION

Switch "OnOff_graph_fg_mean" is active, but "num_trials" == 1. In other words, you have chosen to graph the mean function value per iteration over multiple trials, but no mean will be generated since only one trial is to be conducted. The graph of mean behavior will not take effect. If your intention was to graph the function value of the global best over one trial, please activate switch "OnOff_graph_fg" instead.

Any of graphing switches "OnOff_graph_ObjFun_f_vs_2D", "OnOff_swarm_trajectory", or "OnOff_phase_plot" which were active have been de-activated since they are not yet compatible with the NN objective. You may subscribe to updates at www.georgeevers.org/pso_research_toolbox.htm to be notified when this functionality becomes available.

Since "OnOff_swarm_trajectory," "OnOff_phase_plot," or "OnOff_graph_x" is active, "OnOff_xhist" has been activated automatically so that "xhist" will be maintained from which to generate the desired graph(s).

PSO settings:
Local Best (Lbest) PSO
35 iterations maximum
Position clamping inactive.
Velocity reset inactive.
Velocities clamped to 50% of the range on each dimension.
History, "ghist," of global bests active.
History, "lhist," of local bests active.
History, "phist," of personal bests active.
History, "fhist," of all function values active.
History, "xhist," of all positions active.
History, "vhist," of all velocities active.
1 trial(s)
5 particles
Inertia weight linearly varied from 0.9 to 0.4 per grouping.
Cognitive acceleration coefficient, c1: 1.49618
Social acceleration coefficient, c2: 1.49618
NN: 9 dimensions
Symmetric Initialization: [-1,1]
Threshold required for success: 0
"OnOff_Terminate_Upon_Success" inactive.

??? Undefined function or method 'RandStream' for input arguments of type 'char'.

Error in ==> Reg_Methods_0And1 at 16
    RandStream.setDefaultStream ...

Error in ==> RegPSO_main at 240
                    Reg_Methods_0And1

Error in ==> Display_Settings at 236
    RegPSO_main

Error in ==> Input_Validation at 304
Display_Settings
Error in ==> Objectives at 298
        Input_Validation

Error in ==> Control_Panel at 584
Objectives %This script associates handle "ObjFun" with the

Error in ==> trainpso at 110
Control_Panel; % Call to PSO Research Toolbox

Error in ==> network.train at 219
  [net,tr] = feval(net.trainFcn,net,tr,trainV,valV,testV);

Error in ==> NN_training_demo at 32
[net,tr] = train(net,P,T); %train NN

>>
=========================================

i did not make any modification and just follow the instructions inside README.pdf.

How? Please help me..Thank Thank~

23 Nov 2011 Neural Network add-in for PSORT This add-in allows a Neural Network to be trained by Particle Swarm Optimization technique. Author: Tricia Rambharose Rambharose, Tricia

Hi Chan,

I tried the code again with Matlab 2008a and it works fine for me. Your error simply means that in the function 'trainpso.m' the variable 'net' can not be found or read. This will happen if a call to 'clear net' or 'clear all' was made.

I advise you to train using the original code again and becareful when making modifications.

Good luck!

22 Nov 2011 Neural Network add-in for PSORT This add-in allows a Neural Network to be trained by Particle Swarm Optimization technique. Author: Tricia Rambharose chan

Hi Tricia,

Thanks for this. I am using Matlab R2008a
while running this code, I am getting this error.

??? Reference to a cleared variable net.

Error in ==> trainpso at 113
net = setx(net, NN_wb);%Set network with new weights and bias

Error in ==> network.train at 219
  [net,tr] = feval(net.trainFcn,net,tr,trainV,valV,testV);

Error in ==> NN_training_demo at 32
[net,tr] = train(net,P,T); %train NN

AND i already try several times the solution below:
1. Download the PSO toolbox at http://www.mathworks.com/matlabcentral/fileexchange/28291-particle-swarm-optimization-research-toolbox.
2. Unzip the downloaded file.
3. On the MATLAB interface go to file -> set path -> add with subfolders. Then find the location of the unzipped downloaded file. -> Save

BUT, still get same errors. Please help me
  
Kind regards
chan

13 Oct 2011 Neural Network add-in for PSORT This add-in allows a Neural Network to be trained by Particle Swarm Optimization technique. Author: Tricia Rambharose ondrej

regarding the error:

??? Undefined function or variable "g".

Error in ==> trainpso at 112
....

Hey Tricia
the thing is I dont know how I fixed it .

I am only aware I just once again set paths. And it worked. But I
definitely did that a couple of times before.
So there is not much to share there.

I hoped the addin would allow me for metaoptimization e.g. finding an
optimal learning rate, momentum etc.
As a learner it underperformes the best learning algs that are part of
the mworks nn toolbox ;(
maybe its just upon my datasets.

But thx again for making it available appreciated. U can republish
this on fileexchange if u want (or i can do it if u like(?)).

br
O

Top Tags Applied by Tricia
neural network, optimization, particle swarm optimization, tricia rambharose
Files Tagged by Tricia
Updated   File Tags Downloads
(last 30 days)
Comments Rating
11 Jan 2011 Screenshot Neural Network add-in for PSORT This add-in allows a Neural Network to be trained by Particle Swarm Optimization technique. Author: Tricia Rambharose neural network, particle swarm optimi..., optimization, tricia rambharose 76 18
  • 3.0
3.0 | 1 rating

Contact us at files@mathworks.com