Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save techwithshadab/985ae397fe09201628517c22c8ce808d to your computer and use it in GitHub Desktop.
Save techwithshadab/985ae397fe09201628517c22c8ce808d to your computer and use it in GitHub Desktop.
for i in range(0,6):
if predictions[i, 0] >= 0.5:
print('I am {:.2%} sure this is a Female'.format(predictions[i][0]))
else:
print('I am {:.2%} sure this is a Male'.format(1-predictions[i][0]))
plt.imshow(test[i].T)
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment