Skip to content

Instantly share code, notes, and snippets.

@iavinas
Created May 24, 2020 11:09
Show Gist options
  • Save iavinas/0fcd23cf0278b6527e5c30b92da35aa1 to your computer and use it in GitHub Desktop.
Save iavinas/0fcd23cf0278b6527e5c30b92da35aa1 to your computer and use it in GitHub Desktop.
Resnet50_predictions = [np.argmax(Resnet50_model.predict(np.expand_dims(feature, axis=0))) for feature in test_Resnet50]
# report test accuracy
test_accuracy = 100*np.sum(np.array(Resnet50_predictions)==np.argmax(test_targets, axis=1))/len(Resnet50_predictions)
print('Test accuracy: %.4f%%' % test_accuracy)
# Test accuracy: 81.1005%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment