Scikit prediction code