What is Machine Learning?
Machine Learning (ML) is a subset of artificial intelligence that focuses on building systems that learn from data, rather than being explicitly programmed for a specific task.
Supervised vs. Unsupervised Learning
Supervised Learning
The model learns from labeled data. It's like a teacher supervising the learning process.
Examples: Spam detection, Image classification.
Unsupervised Learning
The model learns from unlabeled data, finding hidden patterns or structures.
Examples: Customer segmentation, Anomaly detection.
Simple Classification Logic
Here's a very simplified example of how a model might classify data points based on features.
python
Output:
Click "Run Code" to see output