How can I define a fitness function for GA optimization from following ANFIS code?

1 vue (au cours des 30 derniers jours)
Karun Malavya
Karun Malavya le 28 Mar 2019
load fuzex1trnData.dat
x = fuzex1trnData(:,1);
opt = anfisOptions('InitialFIS',4,'EpochNumber',40);
fis = anfis(fuzex1trnData,opt);
figure
anfisOutput = evalfis(x,fis);
plot(x,fuzex1trnData(:,2),'*r',x,anfisOutput,'.b')
legend('Training Data','ANFIS Output','Location','NorthWest'

Réponses (0)

Catégories

En savoir plus sur Fuzzy Logic Toolbox dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by