The code used in the course of my machine learning training.