Skip to content

Instantly share code, notes, and snippets.

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