] [Keras] sklearn.metrics.confusion_matrix
본문 바로가기

카테고리 없음

[Keras] sklearn.metrics.confusion_matrix

confusion_matrix를 구해야하는데....

sklearn.metrics.confusion_matrix(y_truey_predlabels=Nonesample_weight=None)


요 메소드의 리턴 값이 무엇인가?


C : array, shape = [n_classes, n_classes]


이러한 배열인데..


클래스들로 matrix를 만드니까.


2개의 클래스 Ligand=0 not_ligand = 1 이 있으므로


array([[756,   6],
       [  8, 754]])


                    실 제 정 답



 

ligand(0으로 인코딩됨)

active(1)이지

not_ligand(1로 인코딩됨)

active(0)이지

 ligand(0으로 인코딩됨)

active(1)이지

 756

 8

 not_ligand(1로 인코딩됨)

active(0)이지

 6

754