How to make ANFIS fuzzy system to produce exact binary outputs (0 or 1)
5 views (last 30 days)
Show older comments
i have two input column values A and B. C is the result either 0 or 1. when i tried matlab says anfis editor only works on Sugeno systems with one output. please help me. i did it in neural network. the same i have to do in fuzzy neuro.please help
0 Comments
Answers (1)
Sam Chak
on 26 Apr 2025
It appears you are concerned that ANFIS may not be suitable for your needs, particularly if you require exact binary outputs (0 or 1). Given that ANFIS Sugeno systems typically produce continuous outputs, it may not be the best choice for strict binary classification tasks, unless you are willing to perform post-processing of the fuzzy output data using the round() function.
x = linspace(1, 100);
fuzzy_out = rand(100, 1);
y = round(fuzzy_out);
figure
stem(x, fuzzy_out); ylim([-0.25, 1.25]), yline(0.5, 'r--')
title('Non-binary fuzzy outputs')
figure
stem(x, y); ylim([-0.25, 1.25]), yline(0.5, 'r--')
title('Exact binary outputs (0 or 1)')
0 Comments
See Also
Categories
Find more on Fuzzy Logic Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!