How is Validation and Test cost calculated in Classification Learner app?

I used SVM for classification with LBP features as input. I used 20 percent data for testing in classification learner app with 10-fold Corss-validation. In the summary tab of output it calculates Total Validation and Total Test cost. How does it calculate these numbers?

 Accepted Answer

Hi Satish
The validation and testing cost refer to the total number of misclassifications. By default, the app assigns a penalty of 0 if the observation is classified correctly and a penalty of 1 if the observation is classified incorrectly. The penalties can also be changed according to model requirements. You can read more about it in the documentation below.
Hope this helps!

2 Comments

So the cost must be proportional to the accuracy. Like better the accuracy lower the cost. is it?
Yes, the cost is inversely proportional to the accuracy.

Sign in to comment.

More Answers (0)

Products

Release

R2023a

Asked:

on 28 Aug 2023

Commented:

on 29 Aug 2023

Community Treasure Hunt

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

Start Hunting!