• Free preview
  • Text
  • 8m

From rules to learning

The difference between programming a rule and learning one.

In ordinary programming you write the rule. To flag a large transaction you might write: if the amount is over ₹50,000, flag it. That works until the world is more complicated than your rule.

In machine learning you give the program examples together with the right answers, and it finds a rule that fits them. The rule it finds is the model.

python · editable

Enroll in the course to run this code.

That is learning in its smallest form: try candidate rules, keep the one that fits the examples best. Real models have millions of numbers to set instead of one threshold, but the idea is the same.

This was a free lesson from Machine Learning Foundations

See the full course outline and enroll to keep going.

View the course