PSO Classification Algorithm
Versione 1.0.0 (249 KB) da
S. Muhammad Hossein Mousavi
PSO Classification Algorithm
PSO Neural Network Classification % So, there was no proper evolutionary classification Matlab code in the web, % Which decided to make one with PSO. % This code gets data input for classification which contains data and % labels and stores it into 'netdata'. data consists of 300 samples for 6 % classes which includes 40 features. You can extract your features and % label it as it is a supervised model. These features are extracted SURF % features out of small objects images. Now, System is combination of PSO % and typical shallow neural network. Neural network itself makes the % initial structure or body of the system but PSO has duty of weighting the % neurons in training, which true power of evolutionary algorithms present % here. Finally, result compared with SVM, KNN, and TREE classification % algorithms as confusion matrix and final recognition accuracy. % There are three important parameters of 'NH' (number of hidden layers), % 'SwarmSize' and 'MaxIteration' which effect the performance of thee % system significantly. So, in order to get desired result, you should play % with these parameters based on your data. The only drawback here is that % labeling is done manually, which you can fix it yourself easily, but it % is after main stage of training. This code could be expanded to be % trained with other evolutionary algorithms such as GA or DE. If you find % any problem, please contact me as below:
% Also this code is part of the following project, so please cite below % after using the code:
% Mousavi, Seyed Muhammad Hossein, et al. "A PSO fuzzy-expert system: As an % assistant for specifying the acceptance by NOET measures, at PH. D % level." 2017 Artificial Intelligence and Signal Processing Conference % (AISP). IEEE, 2017.
% Thank you for citing the paper and enjoy the code (hope it help you (Be happy :)
Cita come
S. Muhammad Hossein Mousavi (2026). PSO Classification Algorithm (https://it.mathworks.com/matlabcentral/fileexchange/104350-pso-classification-algorithm), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Creato con
R2019a
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS LinuxTag
Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
| Versione | Pubblicato | Note della release | |
|---|---|---|---|
| 1.0.0 |