フィルターのクリア

how to calculate classification accuracy

24 ビュー (過去 30 日間)
Reen Blake-Carr
Reen Blake-Carr 2020 年 10 月 3 日
回答済み: Athul Prakash 2020 年 10 月 9 日
Hi i am using a fuzzy ifnerence system that i have built using matlab but i am looking to compare the classification accuracy to a deicision tree and i have no idea how tp calculate the classification accuracy of the fuzzy inference system i have the outout from the eval function use but where i have searched doesnt seem to provide me ith any answers to how to calculate the classification accuracy of the fuzzy inference system any help would be appreciated.

回答 (1 件)

Athul Prakash
Athul Prakash 2020 年 10 月 9 日
Hi Reen,
I'm not sure which method you want to use for calculating an accuracy value, but here's one approach we may try:
% output= evalfis(fis, input);
pred = round(output);
acc_count = nnz(pred==input);
acc = acc_count/length(input);
Essentially, I'm considering round values of the fuzzy system as the predictions obtained and then counting the number of correct predictions over the total number of inputs.
I think you could also use different functions, such as log or tanh, instead of rounding your predictions - that would be another kind of accuracy metric.
Hope it helps!

カテゴリ

Help Center および File ExchangeFuzzy Logic Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by