Machine Learning
Simple Definition
Machine learning (ML) is a type of AI where systems learn from data rather than being explicitly programmed. Instead of writing rules like “if X then Y,” you show the system thousands of examples and it figures out the patterns on its own.
Traditional Programming vs. Machine Learning
Traditional programming:
- Developer writes rules
- Computer follows those rules
- Works well for predictable, rule-based tasks
Machine learning:
- Developer provides data and examples
- System learns patterns from the data
- Works well for complex tasks where writing all the rules would be impossible
How Machine Learning Works
- You collect a large dataset (e.g., thousands of emails labeled “spam” or “not spam”)
- You feed that data to an ML algorithm
- The algorithm learns patterns that distinguish the two categories
- The trained model can now classify new emails it has never seen
Types of Machine Learning
Supervised learning — the model trains on labeled examples (most common)
Unsupervised learning — the model finds patterns in unlabeled data
Reinforcement learning — the model learns by trial and error, getting rewards for good actions
Where Machine Learning Is Used
- Spam and fraud detection
- Product recommendations
- Medical diagnosis support
- Language translation
- Voice assistants
Related Terms
- Deep Learning — a more powerful subset of machine learning
- Neural Network — the architecture most modern ML models use
- Training Data — the dataset used to teach a model
- Artificial Intelligence — the broader field ML belongs to
See AI terms in action
Browse practical AI workflows that use the concepts in this glossary.
Last updated: