Basic Machine Learning Code For Prediction Filter