src/proteingnn/model.py
def _get_cm(self, y, pred):
        """Get confusion matrix in classification."""
        assert not self._regression
        cm = mF.confusion_matrix(pred, y, num_classes=self.num_classes)
        return cm.clone().detach().cpu().numpy()
Get confusion matrix in classification.
Get confusion matrix in classification.
Get confusion matrix in classification .
def _get_cm(self, y, pred):
        assert not self._regression
        cm = mF.confusion_matrix(pred, y, num_classes=self.num_classes)
        return cm.clone().detach().cpu().numpy()
def _get_cm ( self , y , pred ) : assert not self . _regression cm = mF . confusion_matrix ( pred , y , num_classes = self . num_classes ) return cm . clone ( ) . detach ( ) . cpu ( ) . numpy ( )
Get confusion matrix in classification.
Get confusion matrix in classification .
"""Get confusion matrix in classification."""
self
y
pred