AI GLOSSARY

Rules vs. Learning

Traditional software follows written rules; machine learning learns patterns from examples.

Simple explanation

In traditional programming, a developer writes the rules the computer should follow. In machine learning, we give the system examples and expected outcomes, and it learns a pattern that can be used on new data. Both approaches are useful, and many real systems combine them.

Technical explanation

In traditional programming, a developer writes the rules the computer should follow. In machine learning, we give the system examples and expected outcomes, and it learns a pattern that can be used on new data. Both approaches are useful, and many real systems combine them.

Example

On the left, people write the rules. On the right, examples are used to learn a model that can make predictions.

Related lesson

Rules vs. Learning: visual lesson →

Browse all glossary terms →