Inductive Learning

Inductive Learning in Artificial Intelligence, With an Example

Inductive learning lets an AI system learn a general rule from labeled examples. See how it works with a worked example and where it is used in practice.

On this page
  1. What inductive learning means
  2. A worked example: when to go for a bike ride
  3. Many rules can fit the same examples
  4. Where inductive learning is used
  5. Inductive and deductive reasoning
  6. Limits of inductive learning
  7. How inductive learning differs from conventional AI
  8. Key takeaways

What inductive learning means

Inductive learning is a way for an AI system to learn a general rule from specific examples. The system is shown inputs along with the correct output for each one. From those pairs, it works out a rule that should give the right output for new inputs it has not seen before.

The name comes from inductive reasoning, which moves from particular cases to a general conclusion. Much of machine learning follows this pattern. Spam filters and image classifiers, for example, are often trained on examples that people have already labeled. The training process as a whole is described in how does machine learning really work.

A worked example: when to go for a bike ride

The example below is made up for illustration. A learner is shown six past days. Each day has three inputs (the outlook, the wind, and the temperature) and a label that says whether the rider went out.

Outlook Wind Temperature Rode?
Sunny Light Warm Yes
Sunny Strong Warm No
Rainy Light Cold No
Sunny Light Cold Yes
Cloudy Light Warm Yes
Rainy Strong Cold No

The learner’s job is to find a rule that gets the label right for these rows and, ideally, for days it has not seen. Two different rules both do this:

  • Rule 1: ride when the day is not rainy and the wind is light.
  • Rule 2: ride when the wind is light and the day is either warm or sunny.

Check either rule against the table, and every label matches. The two rules still disagree about some days. On a cloudy, cold day with light wind, Rule 1 says ride and Rule 2 says stay home. The six examples cannot settle that question.

New examples can. Suppose the next day is cloudy and cold, with light wind, and the rider went out. Rule 1 predicts that correctly, and Rule 2 does not. The learner would keep Rule 1 and drop Rule 2.

Many rules can fit the same examples

A candidate rule is called a hypothesis. A learner often has a large set of hypotheses to choose from, and many of them fit the examples it has seen. Different kinds of hypothesis, and how they are written down, are covered in types of hypothesis in machine learning.

To choose between hypotheses that fit equally well, the learner needs a built-in preference. This is called inductive bias. Many learning methods favor simpler rules. That preference is often linked to Occam’s razor, the principle that when two explanations fit the evidence equally well, the simpler one should be preferred.

Where inductive learning is used

Much supervised learning is inductive. In supervised learning, each training example comes with a label, and the system learns to predict the label for new inputs. The term is explained in what does labeled data mean in machine learning.

Some everyday cases:

  • A spam filter learns from emails that people have marked as spam or not spam.
  • An image classifier learns from photos tagged with what they show.
  • A house price model learns from past sales, with the recorded prices as labels.

In each case, nobody writes the rule by hand. The system finds a rule in the examples and applies it to new items. More cases are listed in what are some real-life examples of machine learning.

Not every learner writes an explicit rule. Some keep the training examples and compare each new case with the closest ones. That approach is covered in instance-based learning in machine learning examples.

Inductive and deductive reasoning

Inductive learning takes its name from inductive reasoning, which is set against deductive reasoning. The two work in opposite directions.

Deduction starts from general rules and reaches a conclusion that must follow if the rules and facts are true. For example: all humans are mortal, Socrates is a human, so Socrates is mortal.

Induction starts from specific observations and reaches a general rule that is probably true, but not guaranteed. For example: every swan I have seen is white, so all swans are white. That conclusion turns out to be false, because black swans live in Australia. Induction can be very useful, but new evidence can overturn its conclusions.

For a shorter comparison, see what is inductive and deductive reasoning in AI.

Limits of inductive learning

Because a rule comes from a limited set of examples, its answers are never certain. Three problems come up often:

  • Overfitting. The learner may pick up noise, errors, or coincidences in the training examples. The rule then fits those examples closely but does poorly on new cases.
  • Unrepresentative examples. If the training data does not cover the situations the system later meets, the rule can fail on them.
  • Changing conditions. Induction assumes that future cases will look like past ones. When conditions change, a learned rule can become wrong.

Philosophers have questioned this assumption since David Hume in the 1700s. For AI, the practical lesson is to test a learned rule on data it has not seen, and to keep checking it after it is put to use.

No single learning method works best on every problem. That point is the core of the no free lunch rule in machine learning.

How inductive learning differs from conventional AI

Before machine learning became the main approach in much of the field, AI often relied on people writing rules and knowledge into a program. Terms vary, but that older approach is often called conventional, classical, or symbolic AI. Its systems reason from rules a person supplied. Inductive learning reverses that order: the rules come from the data.

Neither approach is always better. Hand-written rules are easy to read and explain, and they work well when the knowledge is clear and stable. Learned rules can capture patterns that are hard to write down by hand, but they are only as good as their examples. For a list of older systems, see what are examples of conventional AI.

Key takeaways

  • Inductive learning builds a general rule from specific examples and then applies it to new cases.
  • Many rules can fit the same examples, so learners depend on an inductive bias, such as a preference for simpler rules.
  • Results are probable, not certain. Overfitting and unrepresentative data can lead to rules that fail in practice.
  • Much supervised learning works this way, and the idea runs through much of machine learning.

Keep exploring

Guides from other topics

All topics →