File Exchange

image thumbnail

Improved Feedforward Neural Networks Using PSOGSA

version 1.0.0.0 (351 KB) by Seyedali Mirjalili
This program is an improved Feedforward Neural Network using a hybrid algorithm called PSOGSA.

34 Downloads

Updated 03 Jul 2018

View License

This work utilizes a hybrid of Particle Swarm Optimization (PSO) and Gravitational Search Algorithm (GSA) called PSOGSA for training Feedforward Neural Networks (FNNs). The algorithm is applied to the well-known Iris dataset.

The main paper: S. Mirjalili, S. Z. Mohd Hashim, and H. Moradian Sardroudi, "Training feedforward neural networks using hybrid particle swarm optimization and gravitational search algorithm," Applied Mathematics and Computation, vol. 218, pp. 11125-11137, 2012.

Cite As

Seyedali Mirjalili (2020). Improved Feedforward Neural Networks Using PSOGSA (https://www.mathworks.com/matlabcentral/fileexchange/42445-improved-feedforward-neural-networks-using-psogsa), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (18)

Syed Rahman

I was looking for the code for regression problem. Please share the code.

kamel tawfic

Dear Narin Sovann;
could you please send me the modified FNNPSO code that can deal with forecasting problem

please send it to me in
tawfickamel@gmail.com

Thanks

thomas lass

Dear Narin Sovann;
could you please send me the modified FNNPSO code that can deal with forecasting problem

please send it to me in
thomaslass2002@gmail.com

Thanks

Ali sameer

Dear;
I want to use your code to do forecasting purposes. I think these code is desinged to deal with a classification issues. my dilemma is i can not convert this useful code to do a predictive model

can you help me

thanks

Seyedali Mirjalili

@shdotcom: I do not know why the file was empty, please try now.

Seyedali Mirjalili

@Ali Sameer: What is the issue with the target?

shdotcom shdotcom

Dear Seyedali Mirjalili,
would you please check the uploaded ZIP file, there is only one file inside and cannot be opened using Matlab.
Thank you

alvin jiao

Dear Narin Sovann;
could you please send me the modified FNNPSOGSAcode?I am trying to use PSOGSA to deal with image problem.
please send it to me in
kemingjiao@gmail.com
regards

Ali sameer

Dear Narin Sovann;
could you please send me the modified FNNPSO code that can deal with forecasting problem

please send it to me in
brightsunge@gmail.com

Ali sameer

Dear Seyedali Mirjalili,
Can you help me how to get the calculated target .
regards

Dear Seyedali Mirjalili,
i am trying to use your codes FNNPSOGSA to deal with brain image classification. here I am unable to generate confusion matrix, can you please help me in this. because for predicting a new test input I am not able to find the main function.

Dr. Pradeep Jangir

Dear Narin Sovann
i'd modified your codes, FNNPSO, to deal with load forecasting problem(to train FNN).
please send code in
pkjmtech@gmail.com

shaolong sun

I FEEL IS VERY COOL!

Narin Sovann

Dear Seyedali Mirjalili,
i'd modified your codes, FNNPSO, to deal with load forecasting problem(to train FNN). result is good for less dimensional search space (2 dimensions) but not good for more dimensional search space (9 dimensions).
Any advises or suggestions, pleas help
All best regards,
Narin

Seyedali Mirjalili

Hi Sonmyadeep,

It depends on your dataset. You need to change FNNPSOGSA and My_FNN files according to your dataset. The codes are well-documented, so I believe if you spend time and understand the coeds it would be easy for you to modify it.

Soumyadeep

Hi, what changes to the code do you have to make it work for function fitting?

Seyedali Mirjalili

Hi Giovanni,

if actualvalue=[1 0 0] then Iris class = 1 (-1 normalized )
if actualvalue=[0 1 0] then Iris class = 2 (0 normalized)
if actualvalue=[0 0 1] then Iris class = 3 (1 normalized)

Let me know if I can be of more assistance.

Regards,
Ali

Giovanni

Hi, the iris.txt contains 4x150 inputs and 1x150 outputs.Not clear to me how to build the calculated output, since "actualvalue" is a 1x3 vector, since the output is a single value, how do I compare, which formula I must apply to each row of the "actualvalue" matrix to compare with single output in iris.txt file ?

MATLAB Release Compatibility
Created with R2011b
Compatible with any release
Platform Compatibility
Windows macOS Linux