How to compute accuracy and the confusion matrix using K-fold cross-validation?
问题 I tried to do K-fold cross-validation with K=30 folds, with one confusion matrix for each fold. How to compute the accuracy and the confusion matrix to the model with confidence interval? Could someone help me? My code is: import numpy as np from sklearn import model_selection from sklearn import datasets from sklearn import svm import pandas as pd from sklearn.linear_model import LogisticRegression UNSW = pd.read_csv('/home/sec/Desktop/CEFET/tudao.csv') previsores = UNSW.iloc[:,UNSW.columns