Feature learning code used during my MSc thesis