retrieve_y_from_confusion_matrix¶
-
museotoolbox.stats.
retrieve_y_from_confusion_matrix
(confusion_matrix)[source]¶ Retrieve y_predict and y_truth from confusion matrix.
- Parameters
confusion_matrix (nd-array of shape [number of labels, number of labels]) – The confusion matrix
- Returns
yt,yp
- Return type
two nd-array of shape [sum of confusion matrix,]