--

Since we need a concatenated matrix of the results given by each of 10 folds, we need to append the ‘predicted_targets’ obtained by each fold. We then generate the confusion matrix in the normal way by feeding the appended predicted values and actual values (https://scikit-learn.org/stable/modules/generated/sklearn.metrics.confusion_matrix.html).

--

--

Rukshani Somarathna
Rukshani Somarathna

Written by Rukshani Somarathna

PhD student in Computer Science, Software Engineer

No responses yet