Gradient Boosting Implementation Python Tutor