I am using the following code. The average accuracy of 10 fold is 91.98% but the average accuracy from the confusion matrix is 93.67%. I checked the accuracy manually from t