How to make ANFIS fuzzy system to produce exact binary outputs (0 or 1)
7 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Sam Chak
2025-4-26
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Fuzzy Logic Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!