text2class icon indicating copy to clipboard operation
text2class copied to clipboard

Hi, i want to ask how to check the accuracy of training?

Open anglgn opened this issue 2 years ago • 3 comments

I see the code for checking accuracy, but I don't know how to use it.

anglgn avatar May 18 '23 09:05 anglgn

  1. Which part fo the code are you referring to?
  2. Are you looking for the final accuracy?

artitw avatar May 19 '23 02:05 artitw

Yes, i just want to get the final accuracy.

anglgn avatar May 19 '23 03:05 anglgn

With the dataset you want to calculate accuracy on, run it through the model to get predictions, then you can compare the predictions with the ground truth to calculate accuracy. If you really need a library, take a look at https://scikit-learn.org/stable/modules/generated/sklearn.metrics.accuracy_score.html

artitw avatar May 20 '23 01:05 artitw