Skip to content

Instantly share code, notes, and snippets.

@kamal2230
Last active October 11, 2020 07:41
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 kamal2230/f5281fc06b2828766078a58c1db25f4d to your computer and use it in GitHub Desktop.
Save kamal2230/f5281fc06b2828766078a58c1db25f4d to your computer and use it in GitHub Desktop.
lis = []
for ind in test_df.index:
if(test_df['Label'][ind] in test_df['Image'][ind]):
lis.append(1)
else:
lis.append(0)
print("Accuracy of the model on test data is {:.2f}%".format((sum(lis)/len(lis))*100))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment