Instantly share code, notes, and snippets.

Embed
What would you like to do?
from keras.models import load_model
import numpy
dataset = numpy.loadtxt("diabetes.csv", delimiter=",")
input = dataset[:,0:8]
output = dataset[:,8]
model = load_model('diabetes.h5')
scores = model.evaluate(input, output)
print("\n%s: %.2f%%" % (model.metrics_names[1], scores[1]*100))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment