Solution to the Coursera's Practical Machine Learning Peer Assignment