Unit-5_1
Unit-5_1
Expert System:
Representing and using Domain Knowledge,
Reasoning with knowledge,
Expert System Shells-examples,
Knowledge acquisition skills-examples
What is learning?
• According to Herbert Simon, learning denotes
changes in a system that enable a system to
do the same task more efficiently the next
time.
• Learning is a an area of AI that focuses on
process of self-improvement.
• Information processes that improve their
performance or enlarge their knowledge bases
are said to learn.
What is learning?
Why is it hard?
• Intelligence implies that an organism or
machine must be able to adapt to new
situations.
• It must be able to learn to do new things.
• This requires knowledge acquisition, inference,
updating/refinement of knowledge base,
acquisition of heuristics, applying faster
searches etc.
Learning
• The following tasks must be learned by an
agent.
• To predict or decide the result state for an
action.
• To know the values for each state(understand
which state has high or low value).
• To keep record of relevant percepts.
1. Rote Learning (memorization): Memorizing things
without knowing the concept/ logic behind them
2. Passive Learning (instructions): Learning from a
teacher/expert.
3. Analogy (experience): Learning new things from
our past experience.
4. Inductive Learning (experience): On the basis of
past experience formulating a generalized concept.
5. Deductive Learning: Deriving new facts from
past facts.
Why do we require machine learning?
• Machine learning plays an important role in
improving and understanding the efficiency of
human learning.
• Machine learning is used to discover a new
things not known to many human beings.
Methods of Learning.
Skill refinement : one can learn by practicing,
e.g playing the piano.
Knowledge acquisition: one can learn by
experience and by storing the experience in a
knowledge base.
Taking advice: Similar to rote learning.
although the knowledge that is input may
need to be transformed (or operationalised) in
order to be used effectively.
Methods of Learning.
Problem Solving : if we solve a problem one may learn from
this experience. The next time we see a similar problem we
can solve it more efficiently. This does not usually involve
gathering new knowledge but may involve reorganization of
data or remembering how to achieve to solution.
Induction : One can learn from examples. Humans often
classify things in the world without knowing explicit rules.
Usually involves a teacher or trainer to aid the classification.
Discovery : Here one learns knowledge without the aid of a
teacher.
Analogy : If a system can recognize similarities in
information already stored then it may be able to transfer
some knowledge to improve to solution of the task in hand.
What is rote learning
For instance 1 :
<'sunny','warm','normal','strong','warm ','same'>
and positive output.
G1 = G
S1 = ['sunny','warm','normal','strong','warm ','same']
For instance 2 :
<'sunny','warm','high','strong','warm ','same'>
and positive output.
G2 = G
S2 = ['sunny','warm',?,'strong','warm ','same']
For instance 3 :
<'rainy','cold','high','strong','warm ','change'>
and negative output.
G3 = [['sunny', ?, ?, ?, ?, ?], [?, 'warm', ?, ?, ?, ?],
[?, ?, ?, ?, ?, 'same']]
S3 = S2
Output :
G = [['sunny', ?, ?, ?, ?, ?], [?, 'warm', ?, ?, ?, ?]]
S = ['sunny','warm',?,'strong', ?, ?]
Decision Tree
• Decision Tree is the most powerful and popular
tool for classification and prediction.
• A Decision tree is a flowchart-like tree
structure, where each internal node denotes a
test on an attribute, each branch represents an
outcome of the test, and each leaf node
(terminal node) holds a class label.
• It uses ID3 program to build decision tree .
Decision Tree
Decision Tree
• It begins by choosing random subset of the
training instance. This is called window.
• The algorithm builds the decision tree that
correctly classifies all examples in the window.
• The tree is then tested on the training
examples outside the window.
• If all examples are classified correctly.
Algorithm halts.
• Otherwise adds more examples in the window
and process repeats.
Explanation-based Learning
Explanation-based Learning
Explanation-based Learning
Explanation-based Learning
Explanation-based Learning