Showing 0% accuracy after submitting

https://drive.google.com/open?id=1zAGULDoU1asRo6uTw2ZgrbHPBNXryDNA

This code doesn’t show any error and also gives the correct output but after submitting it shows the 0% accuracy…

Upload your ipynb file and share link of your ipynb file and not the doc file. Also check the csv format for submission file, match number of rows and than submit again.

Hope this cleared your doubt. :blush:

https://drive.google.com/open?id=1k5irxQQZxK1gMWxNKuhG4j_sE3innKVi

I checked the csv format for submission file, it is correct

The problem is because file format was incorrect, actually your csv file contained words “neg " and “pos " and hence it didn’t matched with any of “neg” and “pos” and hence your recieved 0 accuracy.
import csv
with open(“Output.csv”,‘w’,newline=’’) as f:
fwriter = csv.writer(f)
f.write(‘Id,label \n’)
#fwriter.writerow([” “])
for j in range(10000):
f.write(”%s,%s\n” %(j,Output[j]))

Just changed the last line and now your csv file created was in right format.

Hope this cleared your doubt. :blush: