Machine learning gives computers the ability to learn without being explicitly programmes. It is related to artificial intelligence. Machine learning algorithms build a mathematical model based on sample data to make predictions or decisions. Machine learning is used for spam filters, optical character recognition and search engines.