What is Machine Learning

Machine learning (ML) is the part of AI in which a model learns a pattern from examples. You do not write a separate rule for every case. You show the model data, and it estimates a function that works on new cases.

The three main families

FamilyWhat you provideWhat the model learnsExample
SupervisedInputs and the correct answerHow to predict that answerWill this customer churn?
UnsupervisedInputs onlyGroups or structure in the dataWhich customers behave alike?
ReinforcementActions and a rewardA policy that earns a higher rewardWhich offer to show next

Features and labels

A feature is an input the model can use, such as income, tenure, or number of late payments. A label is the outcome you want to predict, such as defaulted or not. In supervised learning you train on both. At prediction time you have features only, and the model estimates the label.

A simple pipeline

  1. Define the decision and the label.
  2. Collect historical examples and clean them.
  3. Split the data so the test set is unseen.
  4. Train a model and measure it on the test set.
  5. Deploy it, then watch whether the data or the accuracy drifts.

A practical example

A lender wants to estimate default risk. Features include income, years in the job, existing debt, and repayment history. The label is whether a past applicant defaulted within 12 months. The trained model scores a new applicant. A credit officer still applies policy; the model supplies a consistent signal.

What to remember

  • ML learns from examples. It is not a fixed script of rules.
  • The label must match the decision you will actually make.
  • A model that looks strong on old data can fail when the world changes. Measure it on fresh cases.