Implementation of advanced statistical learning algorithm in python