AIML PPTS Merged
AIML PPTS Merged
Pattern Model
Local and only applicable to Global and fits the entire
certain attributes dataset
• As we know that data is raw fact!! Usually data is in the form of a table.
Some time it can be referred as a data point, sample or an example
• If table, each row represents a data point. Features are attributes or
characteristics of an object.
• Normally, the columns are attributes
• Out of all attributes, one attribute is important and is called label
• Label is the feature that we aim to predict
• That’s what two types of data
– Labeled data
– Unlabelled data
Sunilkumar H R, PESITM
Preamble:
Sunilkumar H R, PESITM
Introduction to learning and its types
• Learning: the process of acquiring knowledge and expertise through study,
experience, or being taught
• To make machines learn, we need to simulate the strategies of human
learning in machines
• Will the computers learn?
• What sort of tasks can computers learn?
• This depends on the nature of problems that the computers can solve.
• Two kinds of problems
– Well posed
– Ill posed
• Computers can learn only well posed problems as they have well defined
specifications and have the following components
– Class of learning tasks (T)
– A measure of performance (P)
– A source of experience (E)
Sunilkumar H R, PESITM
• The standard definition of learning proposed by Tom Mitchel is that a program can
learn from E for the task T, and P improves with experience E.
Sunilkumar H R, PESITM
Learning Model=Hypothesis Set + Learning Algorithm
Sunilkumar H R, PESITM
Classical and Adaptive Learning Systems
• A classical ML system has components such as Input, Process and Output
• The input values are taken from the environment directly. These values
are processed and a hypothesis is generated as output model. This model
used for making predictions. The predicted values are consumed by the
environment.
• Adaptive learning systems interact with the input for getting labeled data
as direct inputs are not available. It follows reinforcement learning (As
discussed in chapter 1)
Sunilkumar H R, PESITM
Learning Types
• There are different types of learning
1. Learn by memorization
2. Learn by example
3. Learn by being taught
4. Learn by critical thinking
5. Self learning
6. Learning to solve problems
7. Learning by generalizing explanantions
Sunilkumar H R, PESITM
1. Learn by memorization or learn by repetition : Called as rote learning,
memorizing without understanding logic or concept
2. Learn by example / learn by experience: Previous knowledge acquired at
some time used to come conclusions
– The learner learns by inferring a general rule from the set of
observations
3. Learn by being taught : An expert or teacher will make him learn –
passive learning
– Interactively learn through queries – active learning
4. Learning by critical thinking : Also called deductive thinking
– Deduces new facts or conclusion from related known facts and
information
5. Self learning – reinforcement learning
6. Learning to solve problems : is a type of cognitive learning where learning
happens in the mind and is possible by devising a methodology to
achieve a goal
7. Learning by generalizing explanations : also called as explanation based
learning , that exploits domain knowledge from experts to improve the
accuracy of learned concepts by supervised
Sunilkumar H R, PESITM learning
Introduction to CONCEPT LEARNING
Sunilkumar H R, PESITM
• Each concept or category obtained by learning is a boolean valued
function which takes a true or false value
• For example, humans can identify different kind of animals based on
common relevant features (specific set of features)
• THIESE SPECIAL FEATURES THAT DISTINGUISH ONE ANIMAL FROM
ANOTHER CAN BE CALLED AS CONCEPT
• This way of learning categories for object and to recognize new instances
is called as concept learning ‘ it is formally defined as inferring a Boolean
valued function by processing training instances’
• Concept learning requires three things
– Input : training data set
– Output: target concept or target function f
– Test : new instance to test the learned model
• Another definition: “given a set of hypotheses, the learner
searches through the hypothesis space to identify the best
hypothesis that matches the target concept”
Sunilkumar H R, PESITM
SL Horns Tail Tusks Paws Fur Color Hooves Size Elephant
No
1 No Short Yes No No Black No Big Yes
2 Yes Short No No No Brown Yes Medium No
3 No Short Yes No No Black No Medium Yes
4 No Long No Yes Yes White No Medium No
5 No Short Yes Yes Yes Black No Big Yes
Independent attributes: Horns, tail, tusks, paws, fur, color, hooves, size
The dependent attribute: Elephant
The target concept is to identify the animal to be an Elephant.
Sunilkumar H R, PESITM
Representation of hypothesis
Sunilkumar H R, PESITM
• The most general hypothesis can allow any value for each of the attribute.
It can be written as <?,?,?,?,?,?,?>
• The most specific hypothesis will not allow any value for each of the
attribute. It can be represented as < ø ,ø, ø, ø, ø, ø, ø, ø >
• Hypothesis space: is the set of all possible hypotheses that approximates
the target function f
• From this set of hypotheses in the hypothesis space , a machine learning
algorithm would determine the best possible hypothesis that would best
describe the target function or best fit the outputs.
• The subset of hypothesis space that is consistent with all observed training
instances is called as Version space. Version space represents the only
hypothesis that are used for the classification
Sunilkumar H R, PESITM
Sunilkumar H R, PESITM
Chapter 4
Sunilkumar H R PESITM
Sunilkumar H R PESITM