Supervised learning is about learning a mapping between input and output data. A common application is classification tasks, where the class for a given data point is to be predicted. In the training phase, a supervised learning algorithm learns a pattern by which the correct labels (e.g. classes) can be…