Skip to content

Instantly share code, notes, and snippets.

@um4ng-tiw
Created June 28, 2021 16:11
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 um4ng-tiw/cec543d6b16ba6f0691122eb1ddeb6fb to your computer and use it in GitHub Desktop.
Save um4ng-tiw/cec543d6b16ba6f0691122eb1ddeb6fb to your computer and use it in GitHub Desktop.
x,y = test_data_generator.next()
pred_array=[]
for i in range(10):
img = x[i]
img = img.reshape(-1,50,50,3)
pred_val = model.predict(img)
if(pred_val > 0.5):
pred_val = 1
else:
pred_val = 0
pred_array.append(pred_val)
print("Predicted Values:", pred_array)
print("Actual Values:", y[:10])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment