accuracy of the svm model for multiple classes

7 ビュー (過去 30 日間)
rishika yadav
rishika yadav 2022 年 7 月 28 日
回答済み: Hari 2023 年 9 月 5 日
how i can calculate accuraccy of svm model for multiple class,for one vs all classifier, i calculate the maximum score of the tested data,

回答 (1 件)

Hari
Hari 2023 年 9 月 5 日
Hi Rishika,
As per my understanding, you want to calculate the accuracy of an SVM model for multiple classes whose labels are predicted based on one-vs-all (also known as one-vs-rest) approach.
If you have trained the SVM model based on one-vs-all approach and have the test data and corresponding true labels. Then make predictions for the test data using your approach. By comparing the predicted labels (predictions) with the true labels, you can calculate the accuracy by dividing the number of correctly predicted data points by the total number of data points.
Refer to the below documentation to learn more about “Support Vector Machine Classification” using MATLAB.

カテゴリ

Help Center および File ExchangeDeep Learning Toolbox についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by