Skip to content

Instantly share code, notes, and snippets.

@kamal2230
Last active October 11, 2020 07:41
Embed
What would you like to do?
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