YoramJF

Untitled

Feb 14th, 2021
37
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. y_pred_norm = clf_norm.predict(X_test_minmax)
  2. y_test = np.array(y_test)
  3.  
  4. tn = 0
  5. tp = 0
  6. fn = 0
  7. fp = 0
  8. for i in range(0, len(y_test)):
  9. if y_test[i] == y_pred_norm[i] and y_pred_norm[i] == 0:
  10. tn += 1
  11. elif y_test[i] != y_pred_norm[i] and y_pred_norm[i] == 0:
  12. fn += 1
  13. elif y_test[i] == y_pred_norm[i] and y_pred_norm[i] == 1:
  14. tp += 1
  15. elif y_test[i] != y_pred_norm[i] and y_pred_norm[i] == 1:
  16. fp += 1
RAW Paste Data