Skip to content

Instantly share code, notes, and snippets.

@edwardleoni
Created February 25, 2018 04:29
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 edwardleoni/953f63b614f1b04bbd85f2d56dfa422f to your computer and use it in GitHub Desktop.
Save edwardleoni/953f63b614f1b04bbd85f2d56dfa422f to your computer and use it in GitHub Desktop.
from keras.models import load_model
import numpy
model = load_model('diabetes.h5')
predict_me = numpy.array([[1, 126, 60, 0, 0, 30.1, 0.349, 47]])
predictions = model.predict(predict_me)
rounded = [round(output[0]) for output in predictions]
print(rounded)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment