To do the binary classification of a set of images, I trained the random forest on a set of data. I now want to evaluate the error probability of my model. For that, I did two things and I don't know what corresponds to this error probability:
- I calculated the accuracy using the k-fold cross validation
- I tested my model after I calculated the ratio between the misclassified images and the total number of images.
What is the correct way to calculate the probability of error for my trained model?