python - How is "accuracy" calculated using Libsvm - SVM_Predict.exe -


i using libsvm first time. able train data(for images) , model ready "trainingdata.svm.model"

now, when run classification against unknown test data giving me 2 files: 1. trainingdata.svm.prediction (this file contains 1's , 0's) against each of test data. 2. giving me accuracy = 8 %

the question: 1. how interpret 1s , 0s in "trainingdata.svm.prediction". note: classifying genders 1 male , 0 female.

  1. how accuracy calculated? how can program calculate accuracy since test data unknown entity , not know labels yet.

thanks

  1. the file "trainingdata.svm.prediction" predicting labels 1 , 0 set (1 means sample predicted male, 0 female).

  2. it assumes labels belong class index 0, believe.


Comments

Popular posts from this blog

javascript - Is getTimezoneOffset() stable during daylight saving transition? -

Why does PHP consider 0 to be equal to a string? -

formula - R: how to pass in a reference to the variable in glm or lm? -