21CS54 Aiml Module3 PPT
21CS54 Aiml Module3 PPT
chapter 3
BASICS OF LEARNING THEORY
Prepared By: Swathi B V
Assistant Professor
Dept of CSD
CONTENTS
• Introduction to learning and its types
• Introduction to computation learning theory
• Design of a learning system
• Introduction to concept learning
Introduction to machine learning and its
types
• The process of acquiring knowledge and expertise through study,
experience or being taught is called as learning.
• To make machines learn need to simulate the strategies of human
learning in machine. But, will the computers learn?
• First let us address the question-what sort of tasks can the computers
learn? This depends on the nature of problems that the computers
can solve.
• There are two kinds of problems- well posed and ill-posed
• Computers can solve only well-posed problems as these have
well-defined specifications.
Introduction to machine learning and its
types
• Following components inherent to it.
Class of learning tasks (T)
A measure of performance (P)
A source of experience (E)
standard definition of learning proposed by Tom Mitchell’s
A program can learn from E for the task T and P improves with
experience E.
Learning Model = Hypothesis Set + Learning Algorithm
LEARNING ENVIRONMENT
Classical machine learning systems
• Classical machine learning system has components such as input,
process, output.
• The input values are taken from the environment directly. These
values are processed and a hypothesis is generated as output model.
• This model is then used for making predictions.
Adaptive machine learning systems
• Here direct inputs are not available. this process is called
reinforcement learning.
• Here learning agents interact with environment and in return gets
feedback. Based on the feedback, the learning agent generates input
samples for learning.
• Such learning agents are not static and change their behaviour
according to the external signal received from the environment.
• The feedback is known as reward and learning here is the ability of
the learning agent adaptive to the environment based on the reward.
Learning types
1. learn by memorization: memorizing without understanding the logic
or concept.
2. learn by examples also called as learn by experience. which means
performing inductive learning from observation that formulate a
general concept also called as discovery learning.
3. learn by being taught by an expert or a teacher called as passive
learning. there is special kind of learning called active learning where
the learner can interactively query a teacher to label unlabelled data
instances with the desired outputs.
4. learning by critical thinking also called as deductive learning,
deduces new facts or conclusion from related known facts and
information.
Learning types
5. self learning also called as reinforcement learning is a self-directed
learning that normally learns from mistakes punishments and rewards.
6. learning to solve problem is a type of cognitive learning. Here the
learner initially is not aware of the solution or the way to achieve the
goal but only knows the goal.
7. learning by generalizing explanations, also called as
explanation-based learning, is another learning method that exploits
domain knowledge from experts to improve the accuracy of learned
concepts by supervised learning.
Introduction to computation learning theory
• There are many questions that have been raised by mathematicians
and logicians over the time taken by computers to learn
Some of the questions are
1. How can a learning system predict an unseen instance?
2. How do the hypothesis h is close to f, when hypothesis f itself is
unknown?
3. How many samples are required?
4. Can we measure the performance of a learning system?
5. Is the solution obtained local or global?
Computational Learning Theory
• These questions are the basis of a field called ‘Computational
Learning Theory’ (COLT).
• COLT deals with formal methods used for learning systems. It deals
with frameworks for quantifying learning tasks and learning
algorithms.
Design of a learning system
• This hypothesis will be tested with the target function or the goal state
to see if it is a real solution. if the tested hypothesis is a real solution,
then it will be selected. this method generally increases the efficiency
because it is guaranteed to find a better hypothesis but may not be the
best hypothesis.
Heuristic space search
• It is useful for solving tough problems which could not solved by any
other method. Example: travelling salesman problem.
This algorithm works fine if the hypothesis space is finite but practically it is
difficult to deploy this algorithm.
Hence, a variation of this idea is introduced in the candidate
elimination algorithm.
Version space and candidate elimination
algorithm
Version space learning is to generate all consistent hypothesis around
this algorithm computes the version space by the combination of two
cases namely,
• The linear regression model can be created by fitting a line among the
scattered data points.
y=(a0+a1x)+e
Here a0 is the intercept which represents the bias and a1 represents
the slope of the line .these are called regression coefficients, e is the
error in prediction.
INTRODUCTION TO LINEAR REGRESSION
Ordinary Least Square Approach
• The idea of linear regression is based on Ordinary Least Square(OLS)
approach.
• In this method, the data points are modelled using a straight line. any
arbitrarily draw line is not an optimal line.
• The vertical distance between each point and the line is called error.
• These individual error are added to compute the total error of the
predicted er ror.
• This is called sum of residuals
Ordinary Least Square Approach