Skip to content

Instantly share code, notes, and snippets.

@nbortolotti
Created August 15, 2018 13:31
Show Gist options
  • Save nbortolotti/2334d0088776c3381cad222ae0fa4701 to your computer and use it in GitHub Desktop.
Save nbortolotti/2334d0088776c3381cad222ae0fa4701 to your computer and use it in GitHub Desktop.
[use model]Experience with iris dataset using tf.keras & tensorflow
new_specie = np.array([7.9,3.8,6.4,2.0])
predition = np.around(model.predict(np.expand_dims(new_specie, axis=0))).astype(np.int)[0]
print("This species should be %s" % species[predition.astype(np.bool)][0])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment