The machine learning algorithm has three types: supervised algorithms, unsupervised algorithms, and semi-supervised algorithms.