- 1

its urgent plz help

Data Science - Binary Disorder Confusion matrix of binary classification. For binary classifications, a confusion matrix is a I didnt get i have tried it like this y_true = [int(x) for x in input().split()] y_pred = [int(x) for x in input().split()] from sklearn.metrics import confusion_matrix from numpy as np y_pred = np.array(y_pred).reshape(-1 , 1) print(confusion_matrix(y_true, y_pred))

27th Jun 2021, 8:17 AM
Om Nandgirwar
Om Nandgirwar - avatar
1 Odpowiedź
+ 6
Change from numpy as np to import numpy as np
27th Jun 2021, 8:42 AM
David Ashton
David Ashton - avatar