Create the Submission_formet.csv file

how to create submission.csv

The way I do it.

From predicted logits:

  • get labels with np.argmax
  • get probas with a softmax

Then I create a pandas Dataframe:

  • col_names = [‘id’,‘proba’,‘label’]
  • should be (1000,3)

Export to csv:
df.to_csv(file_path,index = False, header=True,sep=',',encoding='utf-8-sig')

1 Like

I had to ensure the order of id’s in the submission file matched the test set