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

  1. You collect a large dataset (e.g., thousands of emails labeled “spam” or “not spam”)
  2. You feed that data to an ML algorithm
  3. The algorithm learns patterns that distinguish the two categories
  4. 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

See AI terms in action

Browse practical AI workflows that use the concepts in this glossary.

Last updated: