Machine learning can be divided into three categories: reinforcement learning, unsupervised learning, and supervised learning. In supervised learning, the computer is taught using a dataset that has been labeled with the outputs of each input. By learning the correlation between the input and output variables using this labeled data, the computer can forecast outputs for fresh inputs.