This tutorial walks you through submitting a “.csv” file of predictions to Kaggle for the first time.

Scoring and challenges:

If you simply run the code below, your score will be fairly poor. I have intentionally left lots of room for improvement regarding the model used (currently a simple decision tree classifier).

The idea of this tutorial is to get you started and have you make the decisions of how to improve your score. At the bottom of the tutorial are challenges which, if you follow them, will significantly improve your score.

Running the code:

I recommend running the code in Jupyter Notebooks. If you don’t know what Jupyter Notebooks is, check out this tutorial which can help you install it and start using it.

You can also download this entire page as a notebook from this folder on my GitHub.

Steps to complete this tutorial: