Advertisement
Guest User

Untitled

a guest
Sep 16th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. # Trying to make predictions on a single image
  2. predictions = model.predict(test_images)
  3. checkPrediction(0)
  4.  
  5. def checkPrediction(index):
  6. probaArray = predictions[index]
  7. print("Model guessed: " + np.argmax(probaArray) # display guess of the model
  8. + " | Real label is: " + test_labels[index] # display the real classification
  9. + " | Whole probability array is: " + probaArray) # display probability array
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement