Machine Learning: Decision Function and Predictions