ML-U5
ML-U5
Intro:
- In Inductive Learning, the Hypothesis Space(H) and Training Examples(D) are provided as Inputs to a
learner. The Generated output of the learner will be a hypothesis(h) from the Hypothesis Space(H) which is
consistent with the training examples(D).
Where, D = { X, f(X) }
X is Instance,
f(X) is the target value (ex: yes/no)
- Inductive Learning follows Statistical Inference, which is a method of making decisions about the parameters
of a population, based on random sampling.
- Whereas is Analytical Learning, the Hypothesis Space(H), Training Examples(D) and Domain Theory(B) are
provided as the inputs to a learner. The Generated output of the learner will be a hypothesis(h) from
Hypothesis Space(H) which is consistent with the training examples(D) and Domain Theory(B).
- Here, Domain Theory(B) is just an additional Info about the training examples.
- Analytical Learning follows Deductive Inference, which is a reasoning process where conclusions are drawn
logically from a set of premises or axioms.
Prolog:
Prolog (short for Programming in Logic) is a high-level programming language primarily used for logic
programming and artificial intelligence (AI) applications. It is based on formal logic and provides a powerful
framework for solving problems involving symbolic reasoning, pattern matching, and knowledge
representation.
EBG:
Explanation-Based Generalization (EBG) is a machine learning technique that leverages domain knowledge
to improve the generalization of learning from specific examples. The core idea is to generalize from individual
examples by using explanations based on a domain theory.
Example of EBG
Consider a domain where the goal is to classify animals as mammals or non-mammals. Suppose you have a
specific example:
● Mammals are animals that have hair or fur and produce milk.
Process in EBG:
1. Explanation: A dog is a mammal because it has hair and produces milk, consistent with the domain
theory.
2. Generalization: From this example, you can generalize that animals with hair or fur and that produce
milk are mammals.
3. Refinement: Ensure that this generalization accurately applies to other examples, like cats or humans,
and adjust the rule if necessary.
Generalized Rule:
Prolog-EBG:
Properties of Prolog-EBG:
- It follows the Sequential Covering Approach.
- It is a Deductive Learning System which assumes that the domain knowledge is correct and complete.
- It produces general hypotheses by using domain knowledge to analyze the individual examples.
Prolog-EBG Algorithm:
Steps(6):
Example of Prolog-EBG
Consider a simple domain theory related to animals:
Domain Theory:
% Facts
has_hair(dog).
has_hair(cat).
produces_milk(dog).
produces_milk(cat).
% Rule
mammal(X) :- has_hair(X), produces_milk(X).
● Specific Example:
○ Example: A dog is a mammal.
● Explanation:
○ Explanation: The domain theory specifies that an animal is a mammal if it has hair and produces
milk. A dog meets these criteria, so it is classified as a mammal.
● Generalization:
● Refinement:
○ Ensure the rule applies to other examples, such as cats, and adjust if necessary.
● Application:
Query: ?- mammal(cat).
○ Result: true, indicating that a cat is classified as a mammal based on the generalized rule.
● Definition: Explanation-Based Learning is a general learning framework that uses domain knowledge
to derive general rules from specific examples. It involves generating explanations for why specific
examples fit into particular categories and then using these explanations to form broader
generalizations.
● Purpose: EBL aims to improve the efficiency of learning by leveraging domain knowledge to generalize
from a small number of examples. It helps in deriving more accurate and interpretable rules based on
specific instances.
● Process:
1. Domain Theory: Represents the background knowledge.
2. Specific Examples: Concrete cases used for learning.
3. Explanation Generation: Understanding why an example fits a certain category.
4. Generalization: Deriving general rules from explanations.
5. Refinement and Application: Validating and applying the learned rules.