A machine learning algorithm is a procedure that turns data into a machine learning model. Algorithms learn from this data, often through pattern recognition. Some examples of machine learning algorithms are linear regression, logistic regression, decision tree algorithms, artificial neural networks, k-nearest neighbors, and k-means.