- Jang, J.-S. R. "ANFIS: Adaptive-Network-based Fuzzy Inference Systems." IEEE Transactions on Systems, Man, and Cybernetics 23, no. 3 (May 1993): 665–685.
ANFIS code in matlab
7 views (last 30 days)
Show older comments
I would like to get the ANFIS code in matlab , I mean the build in function
when I use the command
>> open anfis
the opened anfis function is vague for me and don't contain the calculation for each layer.
I need to study the code and study the calculations for each layer.
there are alot of coding of anfis in mathworks but the codes is different from The original code in matlab.
They use PSO or GA or ,etc optimization algorithm while the original code in matlab using a combination of the least-squares and backpropagation gradient descent methods to model the training data set.
I need the detailed original code the study it
could any one help me
thanks alot in advance
2 Comments
Sam Chak
on 22 Jan 2024
Edited: Sam Chak
on 22 Jan 2024
Hi @MAB
Would you mind telling me the reason why you want to 'study' the anfis() code? Are you assigned a task to reinvent the ANFIS algorithm or being pressured to publish academic work for a novel ANFIS-like algorithm?
If your intention is solely to learn about the ANFIS framework for academic writing purposes, wouldn't it be best to refer to Jang's paper?
Or even better to refer the book by Jang, Sun and Mizutani:
If you believe that the existing ANFIS is incapable of producing the desired or expected outcome, have you analyzed whether this is due to a data problem or a limitation of ANFIS itself?
Answers (1)
John D'Errico
on 22 Jan 2024
No problem. It appears the anfis function is written in MATLAB itself, and not compiled. If it was compiled code, then no, they do not give it out, and the only way to see the code it to work for TMW. But, since it is written in MATLAB, then you can read the code directly. As such, there is no better source than to read the code yourself. That IS the original code.
If it is too "vague" (I'm not totally sure what vague means here to you) for you, we cannot help, beyond teaching you a detailed course in the subject. For example, perhaps you do not understand why the author made some specific choices in writing the code. That detailed course would be wildly beyond the scope of Answers.
So spend the time reading the code in detail, because that really is the code.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!