How would you explain the difference between supervised and unsupervised learning?
How would you explain the difference between supervised and unsupervised learning?
Click “See more” to see the answer below 👇
.
.
.
In supervised learning, the model is trained on labeled data, which means the input comes with corresponding output labels, and the goal is to predict the output from new, unseen data. For example, in a classification problem like spam detection, the model is trained on emails labeled as spam or not spam.
In unsupervised learning, the model works on unlabeled data and tries to find hidden patterns or structures. An example is clustering, where data is grouped into clusters based on similarity without any pre-defined labels.