Skip to content

Instantly share code, notes, and snippets.

@um4ng-tiw
Created July 13, 2021 06:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save um4ng-tiw/6b66ef0147c23c474b6230b64207d60f to your computer and use it in GitHub Desktop.
Save um4ng-tiw/6b66ef0147c23c474b6230b64207d60f to your computer and use it in GitHub Desktop.
cell_dict = {0:"Benign", 1:"Malignant", 2:"Normal"}
predictions = {}
actual_val = {}
k=0
for arr in y[:5]:
actual_val[k] = cell_dict[np.argmax(arr)]
k+=1
k=0
for pred in pred_array:
predictions[k] = cell_dict[pred]
k+=1
print("ACTUAL:", actual_val)
print("PREDICTIONS:", predictions)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment