SSkilvy

A program that learns from examples

In ordinary programming a human writes rules: "if an email contains word X, it is spam". Machine learning (ML) flips the approach: instead of rules you give the program many examples (thousands of emails labeled "spam"/"not spam"), and it finds the patterns distinguishing one from another itself. The model learns rather than following set logic.

What the difference is

  • Ordinary program: a human sets rules to the program applies them.
  • ML: a human gives data (examples) to the model derives rules itself.

When ML is useful

ML is strong where rules are too complex or non-obvious to write by hand: image recognition (how do you describe "a cat" in code?), understanding text, predicting demand, recommendations. Where patterns exist but are hard to express explicitly — ML finds them in the data.

How does ML differ from ordinary programming on a simple example?
Take recognizing handwritten digits. The ordinary approach: try writing rules distinguishing "7" from "1" — it is a nightmare, everyone has different handwriting, a million exceptions. The ML approach: show the model thousands of handwritten digit examples with correct answers, and it learns what distinguishes each digit itself. You do not write the rule "a seven has a horizontal line on top" — the model derives patterns from data. The key ML idea: do not program logic by hand, let the model learn from examples. This works when there are too many rules or they are non-obvious for explicit description.

ML is not "magic" or "thinking"

It is important to understand: an ML model does not "understand" or "think" like a human. It finds statistical patterns in data and applies them. This is powerful but has limits: a model is only as good as the data it learned on, and works poorly on things very different from the training examples. Understanding this essence protects from inflated expectations.

Course rule: ML is learning from data instead of manual rules. The model finds patterns in examples but does not "think"; its quality is determined by the data.
āœ• Ordinary program • a human writes rules• "if X then Y"• logic set by hand āœ“ Machine learning • a model learns from data• finds patterns• rules derived from examples
ML is when a program learns from data instead of following hand-written rules.

🧠 What is the main difference of ML from ordinary programming?