Member-only story
Code review for my first silver medal in a Kaggle competition
Last night, quite on the spur of the moment, I decided to check my junk folder of my email account. Imagine my surprise when I received an email from Kaggle telling me that I had won a silver medal on a Jupyter notebook that I had written two years ago. To be honest, I had long forgotten entering that competition and I have moved away from Kaggle a bit because I am exploring other technical topics in an attempt to expand my repertoire.
Because I had written the code for this Jupyter notebook two years ago, my coding strategy has changed somewhat as I have learned more and more about machine learning. I am therefore going to review the code that I wrote on that occasion because Kaggle must have thought it was acceptable, as they gave me a silver medal for it:-
The competition was composed of a natural language processing question and had six columns of data for the output, or target. The problem statement for the competition can be seen below:-
Once I created the notebook, I imported the libraries that I would need to execute the program, being:-
- Numpy to make numpy arrays and make numeric…