What is Machine Learning (ML)

Machine Learning is a subset of AI where systems learn patterns from data instead of relying only on explicit rules programmed by humans.

The structural shift from classical programming

Supervised learning

Training maps input features X to target labels y using labeled examples:

Unsupervised learning

Only unlabeled X is available. The model discovers structure on its own:

flowchart LR A[Data] --> B{Labels?} B -- Yes --> C[Supervised training] B -- No --> D[Unsupervised learning] C --> E[Prediction] D --> F[Pattern discovery]

Practical ML workflow

  1. Collect, clean, and represent data (features).
  2. Split into train / validation / test sets.
  3. Choose model family and loss function for the task type.
  4. Train, tune hyperparameters, and evaluate generalization.
  5. Deploy, monitor drift, and retrain when performance drops.