Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Unit1

Download as pdf or txt
Download as pdf or txt
You are on page 1of 279

Noida Institute of Engineering and Technology,

Greater Noida
INTRODUCTION TO MACHINE
LEARNING

Unit: 1

MACHINE LEARNING
Dr. Roop Singh
ACSML0601
Associate Professor
B Tech 6th Sem CSE(AI) Department
Computer Science and Engineering (Artificial
Intelligence)

Dr. Roop Singh ACSML0601 Machine Learning Unit 1


1
9/28/24
CONTENT
Evaluation Scheme

Dr. Roop Singh ACSML0601 Machine Learning


9/28/24 2
Unit 1
Subject LEARNING
THE CONCEPT Syllabus TASK
B. TECH. THIRD YEAR
Course code ACSML0601 L T P Credits
Course title MACHINE LEARNING 3 0 0 3

Course objective: To introduction to the fundamental concepts in machine learning and popular machine learning algorithms. To understand the standard
and most popular supervised learning algorithm.
Pre-requisites: Basic Knowledge of Machine learning.
Course Contents / Syllabus
UNIT-I INTRODUCTION TO MACHINE LEARNING 8 Hours
INTRODUCTION – Learning, Types of Learning, Well defined learning problems, Designing a Learning System, History of ML, Introduction of Machine
Learning Approaches, Introduction to Model Building, Sensitivity Analysis, Underfitting and Overfitting, Bias and Variance, Concept Learning Task, Find – S
Algorithms, Version Space and Candidate Elimination Algorithm, Inductive Bias, Issues in Machine Learning and Data Science Vs Machine Learning.

UNIT-II MINING ASSOCIATION AND SUPERVISED LEARNING 8 Hours


Classification and Regression, Regression: Linear Regression, Multiple Linear Regression, Logistic Regression, Polynomial Regression, Decision Trees: ID3,
C4.5, CART.

Apriori Algorithm: Market basket analysis, Association Rules.

Neural Networks: Introduction, Perceptron, Multilayer Perceptron, Support vector machine.

UNIT-III UNSUPERVISED LEARNING 8 Hours


Introduction to clustering, K-means clustering, K-Nearest Neighbor, Iterative distance-based clustering, Dealing with continuous, categorical values in K-
Means, Hierarchical: AGNES, DIANA, Partitional: K-means clustering, K-Mode Clustering, density-based clustering, Expectation Maximization, Gaussian
Mixture Models.

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 3


Subject LEARNING
THE CONCEPT Syllabus TASK

UNIT-IV PROBABILISTIC LEARNING & ENSEMBLE 8 Hours


Bayesian Learning, Bayes Optimal Classifier, Naıve Bayes Classifier, Bayesian Belief Networks.

Ensembles methods: Bagging & boosting, C5.0 boosting, Random Forest, Gradient Boosting Machines and XGBoost.

UNIT-V REINFORCEMENT LEARNING & CASE STUDIES 8 Hours


Reinforcement Learning: Introduction to Reinforcement Learning, Learning Task, Example of Reinforcement Learning in Practice,
Learning Models for Reinforcement – (Markov Decision process, Q Learning – Q Learning function, QLearning Algorithm), Application
of Reinforcement Learning.

Case Study: Health Care, E Commerce, Smart Cities.

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 4


THE CONCEPT LEARNING TASK
Text Books

Text books:
1) Marco Gori , Machine Learning: A Constraint-Based Approach, Morgan
Kaufmann. 2017

1) Ethem Alpaydin, Machine Learning: The New AI, MIT Press-2016

1) Bishop, Christopher. Neural Networks for Pattern Recognition. New York, NY: Oxford University Press, 1995

1) Tom M. Mitchell, “Machine Learning”, McGraw-Hill, 2010

Reference Books:
1) Ryszard, S., Michalski, J. G. Carbonell and Tom M. Mitchell, Machine Learning: An Artificial Intelligence Approach, Volume 1, Elsevier.
2014

1) Stephen Marsland, Taylor & Francis 2009. Machine Learning: An Algorithmic Perspective.

1) Ethem Alpaydin, (2004) “Introduction to Machine Learning (Adaptive Computation and Machine Learning)”, The MIT Press.

1) Fundamentals of Machine Learning for Predictive Data Anayltics: Algorithms, Worked Examples, and Case Studies 1st
Edition by John D. Kelleher

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 5


THE CONCEPT
Branch LEARNING TASK
Wise Applications

Dr. Roop Singh ACSML0601 Machine Learning Unit 1


9/28/24 6
Course Objective
THE CONCEPT LEARNING TASK

• To introduce students to the basic concepts of Machine Learning.

• To develop skills of implementing machine learning for solving


practical problems.

• To gain experience of doing independent study and research related


to Machine Learning

Dr. Roop Singh ACSML0601 Machine Learning Unit 1


9/28/24 7
THE CONCEPT LEARNING TASK
Course Outcome

At the end of the semester, student will be able to:

Course CO Description Blooms’


Outcomes Taxonomy
(CO)
CO1 Understanding utilization and implementation proper K2
machine learning algorithm.
CO2 Understand the basic supervised machine learning K2
algorithms.
CO3 Understand the difference between supervise and K2
unsupervised learning.
CO4 Understand algorithmic topics of machine learning and K2
mathematically deep enough to introduce the required
theory.
CO5 Apply an appreciation for what is involved in learning K3
from data.
9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 8
Program Outcome
CONTENT
1. Engineering knowledge:
2. Problem analysis:
3. Design/development of solutions:
4. Conduct investigations of complex problems:
5. Modern tool usage:
6. The engineer and society:
7. Environment and sustainability:
8. Ethics:
9. Individual and team work:
10. Communication:
11. Project management and finance:
12. Life-long learning
9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 9
THE CONCEPT
CO-PO LEARNING
and PSO MappingTASK

Correlation Matrix of CO with PO


CO.K PO1 PO2 PO3 PO4 PO5 PO6 PO7 PO8 PO9 PO10 PO11 PO12

ACSML0601.1 3 2 2 1 2 2 - - - 1 - -

ACSML0601.2 3 2 2 3 2 2 1 - 2 1 1 2

ACSML0601.3 2 2 2 2 2 2 2 1 1 - 1 3

ACSML0601.4 3 3 1 3 1 1 2 - 2 1 1 2

ACSML0601.5 3 2 1 2 1 2 1 1 2 1 1 1

AVG 2.8 2.2 1.6 2.2 1.6 1.8 1.2 0.4 1.4 0.8 0.8 1.6

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 10


Program Specific
THE CONCEPT Outcomes
LEARNING TASK

• PSO1-Apply Artificial Intelligence and its applications


to design intelligent systems for the betterment of
society.
• PSO2-Develop AI-based innovative solutions
demonstrating research, entrepreneurship,
professional ethics, and communication skills.
• PSO3-Demonstrate competency in AI by working in a
team and engaging in life-long learning.

Dr. Roop Singh ACSML0601 Machine Learning Unit 1


9/28/24 11
CO-PO
THE and PSO
CONCEPT MappingTASK
LEARNING

Matrix of CO/PSO:
PSO1 PSO2 PSO3

ACSML0601.1 3 2 3

ACSML0601.2 3 2 2

ACSML0601.3 3 2 3

ACSML0601.4 2 1 1

ACSML0601.5 2 2 1

AVG 2.6 1.8 2

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 12


Program Educational
THE CONCEPT Objectives
LEARNING TASK

• PEO1-Engage in successful professional practices in the


area of Artificial Intelligence and pursue higher
education and research.

• PEO2-Demonstrate effective leadership and


communicate as an individual and as a team in the
workspace and society.

• PEO3-Pursue life-long learning in developing AI-based


innovative solutions for the betterment of society.

Dr. Roop Singh ACSML0601 Machine Learning Unit 1


9/28/24 13
Result Analysis
THE CONCEPT LEARNING TASK

• ML Result of 2020-21: 89.39%


• Average Marks: 46.05

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 14


End Semester Question
THE CONCEPT Paper Template
LEARNING TASK

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 15


THE CONCEPT LEARNING TASK
Prerequisite

Prerequisites:
• Statistics.
• Linear Algebra.
• Calculus.
• Probability.
• Programming Languages.

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 16


THE
BriefCONCEPT LEARNING
Introduction TASK
to Subject

https://www.youtube.com/watch?v=PPLop4L2eGk&list=PLLssT5z_DsK-
h9vYZkQkYNWcItqhlRJLN

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 17


TopicTHE
Mapping withLEARNING
CONCEPT Course Outcome
TASK

Topics Course outcome

— Learning, Types of Learning, Well CO1


defined learning problems.

— Designing a Learning System. CO1

— Concept Learning CO1

— Introduction of Machine Learning CO1


Approaches –Issues in Machine
Learning.
CO1
— Data Science Vs Machine Learning;

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 18


LectureLEARNING
THE CONCEPT Plan TASK

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 19


LectureLEARNING
THE CONCEPT Plan TASK

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 20


LectureLEARNING
THE CONCEPT Plan TASK

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 21


LectureLEARNING
THE CONCEPT Plan TASK

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 22


LectureLEARNING
THE CONCEPT Plan TASK

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 23


CONTENT

Ø Unit 1 Content:
— INTRODUCTION – Learning,
— Types of Learning,
— Well defined learning problems,
— Designing a Learning System,
— History of ML,
— Introduction of Machine Learning Approaches,
— Introduction to Model Building,
— Sensitivity Analysis,
— Underfitting and Overfitting,
— Bias and Variance,
— Concept Learning Task,
— Issues in Machine Learning and Data Science Vs Machine Learning.
9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 24
THE CONCEPT LEARNING TASK
Unit Objective

The objective of the Unit 1:

1. To understand the basics of machine learning.


2. A clear concept of Learning and learning systems.
3. Brief History of ML.
4. Use of various approaches of Machine learning.
5. understand the difference between Data Science and Machine
learning.

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 25


THE CONCEPT LEARNING TASK
Topic Objective

Student will be able to understand


— Learning

— Types of Learning,

— Well defined learning problems,

— Designing a Learning System

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 26


Introduction
THE (CO1)TASK
CONCEPT LEARNING

Top minds in machine learning predict where AI is going in 2021 and Beyond

AI is no longer poised to change the world someday; it’s changing the world now.

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 27


Introduction
THE (CO1)TASK
CONCEPT LEARNING

Soumith Chintala
Director, principal engineer, and creator of PyTorch

• “I actually don’t think we’ve had a groundbreaking thing … since Transformer, basically.
We had ConvNets in 2012 that reached prime time, and Transformer in 2017 or
something. That’s my personal opinion,”

• Chintala also believes the evolution of machine learning frameworks like PyTorch and
Google’s TensorFlow — the overwhelming favorites among ML practitioners today —
have changed how researchers explore ideas and do their jobs.

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 28


Introduction
THE (CO1)TASK
CONCEPT LEARNING

Soumith Chintala
Director, principal engineer, and creator of PyTorch
• Depending on how you gauge it, PyTorch is the most popular
machine learning framework in the world today.
• A derivative of the Torch open source framework introduced in
2002, PyTorch became available in 2015 and is growing steadily in
extensions and libraries.

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 29


Introduction
THE (CO1)TASK
CONCEPT LEARNING

• Celeste Kidd
• Developmental psychologist at the
• University of California, Berkeley

• Celeste Kidd is director of Kidd Lab at the University of California, Berkeley, where
she and her team explore how kids learn.
• “Human babies don’t get tagged data sets, yet they manage just fine, and it’s
important for us to understand how that happens,” she said.
• Last month, Kidd delivered the opening keynote address at the Neural Information
Processing Systems (NeurIPS) conference, the largest annual AI research
conference in the world. Her talk focused on how human brains hold onto
stubborn beliefs, attention systems, and Bayesian statistics.
9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 30
Introduction
THE (CO1)TASK
CONCEPT LEARNING

• Jeff Dean
• Google AI chief
• Dean has led Google AI for nearly two years now, but he’s been at Google for two decades
and is the architect of many of the company’s early search and distributed network
algorithms and an early member of Google Brain.
• Dean spoke with VentureBeat last month at NeurIPS, where he delivered talks on machine
learning for ASIC semiconductor design and ways the AI community can address climate
change, which he said is the most important issue of our time. In his talk about climate
change, Dean discussed the idea that AI can strive to become a zero-carbon industry and that
AI can be used to help change human behavior.

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 31


Introduction
THE (CO1)TASK
CONCEPT LEARNING

• Anima Anandkumar
• Nvidia machine learning research director

• Anandkumar sees numerous challenges for the AI community in 2020, like the
need to create models made especially for specific industries in tandem with
domain experts. Policymakers, individuals, and the AI community will also
need to grapple with issues of representation and the challenge of ensuring
data sets used to train models account for different groups of people.

9/28/24 32
Dr. Roop Singh ACSML0601 Machine Learning Unit 1
Introduction
THE (CO1)TASK
CONCEPT LEARNING

• Dario Gil
• IBM Research director

• Gil heads a group of researchers actively advising the White House and enterprises
around the world. He believes major leaps forward in 2019 include progress
around generative models and the increasing quality with which plausible
language can be generated.

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 33


Introduction
THE (CO1)TASK
CONCEPT LEARNING

What industry is looking ?

• Advances in natural language models were a major story of 2019 as


Transformers fueled great leaps forward. Look for more variations of BERT
and Transformer-based models in 2021.
• The AI industry should look for ways to value model outputs beyond
accuracy.
• Methods like semi-supervised learning, a neural symbolic approach to
machine learning, and subfields like multitask and multimodal learning
may progress in the year ahead.
• Ethical challenges related to biometric data like speech recordings will
likely continue to be controversial.
• Compilers and approaches like quantization may grow in popularity for
machine learning frameworks like PyTorch and TensorFlow as ways to
optimize model performance.

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 34


Introduction
THE (CO1)TASK
CONCEPT LEARNING

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 35


Introduction
THE (CO1)TASK
CONCEPT LEARNING

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 36


Introduction
THE (CO1)TASK
CONCEPT LEARNING

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 37


Introduction
THE (CO1)TASK
CONCEPT LEARNING

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 38


Introduction
THE (CO1)TASK
CONCEPT LEARNING

9/28/24 39
Dr. Roop Singh ACSML0601 Machine Learning Unit 1
Introduction
THE (CO1)TASK
CONCEPT LEARNING

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 40


Introduction to ML (CO1)
THE CONCEPT LEARNING TASK

What is Machine Learning

9/28/24 41
Dr. Roop Singh ACSML0601 Machine Learning Unit 1
Introduction
THE (CO1)TASK
CONCEPT LEARNING

9/28/24 42
Dr. Roop Singh ACSML0601 Machine Learning Unit 1
Introduction
THE (CO1)TASK
CONCEPT LEARNING

9/28/24 43
Dr. Roop Singh ACSML0601 Machine Learning Unit 1
Introduction
THE (CO1)TASK
CONCEPT LEARNING

9/28/24 44
Dr. Roop Singh ACSML0601 Machine Learning Unit 1
Introduction
THE (CO1)TASK
CONCEPT LEARNING

9/28/24 45
Dr. Roop Singh ACSML0601 Machine Learning Unit 1
Introduction
THE (CO1)TASK
CONCEPT LEARNING

9/28/24 46
Dr. Roop Singh ACSML0601 Machine Learning Unit 1
Introduction
THE (CO1)TASK
CONCEPT LEARNING

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 47


Introduction
THE (CO1)TASK
CONCEPT LEARNING

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 48


Introduction
THE (CO1)TASK
CONCEPT LEARNING

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 49


Introduction
THE (CO1)TASK
CONCEPT LEARNING

9/28/24 50
Dr. Roop Singh ACSML0601 Machine Learning Unit 1
Introduction
THE (CO1)TASK
CONCEPT LEARNING

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 51


Introduction
THE (CO1)TASK
CONCEPT LEARNING

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 52


Introduction
THE (CO1)TASK
CONCEPT LEARNING

9/28/24 53
Dr. Roop Singh ACSML0601 Machine Learning Unit 1
Introduction
THE (CO1)TASK
CONCEPT LEARNING

9/28/24 54
Dr. Roop Singh ACSML0601 Machine Learning Unit 1
Introduction
THE (CO1)TASK
CONCEPT LEARNING

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 55


Introduction
THE (CO1)TASK
CONCEPT LEARNING

9/28/24 56
Dr. Roop Singh ACSML0601 Machine Learning Unit 1
Introduction
THE (CO1)TASK
CONCEPT LEARNING

9/28/24 57
Dr. Roop Singh ACSML0601 Machine Learning Unit 1
Introduction
THE (CO1)TASK
CONCEPT LEARNING

9/28/24 58
Dr. Roop Singh ACSML0601 Machine Learning Unit 1
Introduction
THE (CO1)TASK
CONCEPT LEARNING

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 59


Introduction
THE (CO1)TASK
CONCEPT LEARNING

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 60


Introduction
THE (CO1)TASK
CONCEPT LEARNING

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 61


Introduction
THE (CO1)TASK
CONCEPT LEARNING

9/28/24 62
Dr. Roop Singh ACSML0601 Machine Learning Unit 1
Introduction
THE (CO1)TASK
CONCEPT LEARNING

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 63


Introduction
THE (CO1)TASK
CONCEPT LEARNING

9/28/24 64
Dr. Roop Singh ACSML0601 Machine Learning Unit 1
Introduction
THE (CO1)TASK
CONCEPT LEARNING

9/28/24 65
Dr. Roop Singh ACSML0601 Machine Learning Unit 1
Introduction
THE (CO1)TASK
CONCEPT LEARNING

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 66


Introduction
THE (CO1)TASK
CONCEPT LEARNING

9/28/24 67
Dr. Roop Singh ACSML0601 Machine Learning Unit 1
Introduction
THE (CO1)TASK
CONCEPT LEARNING

9/28/24 68
Dr. Roop Singh ACSML0601 Machine Learning Unit 1
Introduction
THE (CO1)TASK
CONCEPT LEARNING

9/28/24 69
Dr. Roop Singh ACSML0601 Machine Learning Unit 1
Introduction
THE (CO1)TASK
CONCEPT LEARNING

9/28/24 70
Dr. Roop Singh ACSML0601 Machine Learning Unit 1
Introduction
THE (CO1)TASK
CONCEPT LEARNING

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 71


Introduction
THE (CO1)TASK
CONCEPT LEARNING

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 72


Introduction
THE (CO1)TASK
CONCEPT LEARNING

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 73


Introduction
THE (CO1)TASK
CONCEPT LEARNING

9/28/24 74
Dr. Roop Singh ACSML0601 Machine Learning Unit 1
Introduction
THE (CO1)TASK
CONCEPT LEARNING

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 75


Introduction
THE (CO1)TASK
CONCEPT LEARNING

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 76


Introduction
THE (CO1)TASK
CONCEPT LEARNING

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 77


Introduction
THE (CO1)TASK
CONCEPT LEARNING

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 78


Introduction
THE (CO1)TASK
CONCEPT LEARNING

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 79


Introduction
THE (CO1)TASK
CONCEPT LEARNING

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 80


Introduction
THE (CO1)TASK
CONCEPT LEARNING

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 81


Introduction
THE (CO1)TASK
CONCEPT LEARNING

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 82


Introduction
THE (CO1)TASK
CONCEPT LEARNING

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 83


Introduction
THE (CO1)TASK
CONCEPT LEARNING

9/28/24 84
Dr. Roop Singh ACSML0601 Machine Learning Unit 1
Introduction
THE (CO1)TASK
CONCEPT LEARNING

9/28/24 85
Dr. Roop Singh ACSML0601 Machine Learning Unit 1
Introduction
THE (CO1)TASK
CONCEPT LEARNING

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 86


Introduction
THE (CO1)TASK
CONCEPT LEARNING

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 87


Introduction
THE (CO1)TASK
CONCEPT LEARNING

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 88


Learning
THE CONCEPT(CO1,2,3,4)
LEARNING TASK

9/28/24 89
Dr. Roop Singh ACSML0601 Machine Learning Unit 1
Learning
THE CONCEPT(CO1,2,3,4)
LEARNING TASK

Learning:

• The acquisition of knowledge or skills through study, experience, or being


taught.

• Children learn by watching and imitating the people around them.

• Psychologists call this observational learning. And they learn by listening


to what other people say about how the world works—what psychologists
call learning from testimony. (Gopnik 2016: 89)

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 90


Learning
THE CONCEPT(CO1,2,3,4)
LEARNING TASK

Well Posed Learning Problem:

• Definition: A computer program is said to learn from


experience E with respect to some class of tasks T and
performance measure P, if its performance at tasks in T, as
measured by P, improves with experience E.

• For example, a computer program that learns to play checkers


might improve its performance as measured by its ability to
win at the class of tasks involving playing checkers games,
through experience obtained by playing games against itself.

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 91


Learning
THE CONCEPT(CO1,2,3,4)
LEARNING TASK

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 92


Learning
THE CONCEPT(CO1,2,3,4)
LEARNING TASK

• A checkers learning problem:

• Task T: playing checkers


• Performance measure P: percent of games won against
opponents
• Training experience E: playing practice games against itself

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 93


Learning
THE CONCEPT(CO1,2,3,4)
LEARNING TASK

• A handwriting recognition learning problem:

• Task T: recognizing and classifying handwritten words within


images
• Performance measure P: percent of words correctly classified
• Training experience E: a database of handwritten words with
given classifications

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 94


Learning
THE CONCEPT(CO1,2,3,4)
LEARNING TASK

• A robot driving learning problem:

• Task T: driving on public four-lane highways using vision


sensors
• Performance measure P: average distance traveled before an
error (as judged by human overseer)
• Training experience E: a sequence of images and steering
commands recorded while observing a human driver

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 95


Learning
THE CONCEPT(CO1,2,3,4)
LEARNING TASK

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 96


Learning
THE CONCEPT(CO1,2,3,4)
LEARNING TASK

9/28/24 97
Dr. Roop Singh ACSML0601 Machine Learning Unit 1
Learning
THE CONCEPT(CO1,2,3,4)
LEARNING TASK

9/28/24 98
Dr. Roop Singh ACSML0601 Machine Learning Unit 1
Learning
THE CONCEPT(CO1,2,3,4)
LEARNING TASK

DESIGNING A LEARNING SYSTEM


1. Choosing the Training Experience:

2. Choosing the Target Function


3. Choosing a Representation for the Target Function

4. Choosing a Function Approximation Algorithm

5. The Final design

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 99


Learning
THE CONCEPT(CO1,2,3,4)
LEARNING TASK

DESIGNING A LEARNING SYSTEM


1. Choosing the Training Experience:
• The first design choice we face is to choose the type of training experience from which
our system will learn.
• The type of training experience available can have a significant impact on success or
failure of the learner.
There are three attributes which impact on success or failure of the learner.
1. One key attribute is whether the training experience provides direct or
indirect feedback regarding the choices made by the performance
system.
2. A second important attribute of the training experience is the degree to
which the learner controls the sequence of training examples.
3. A third important attribute of the training experience is how well it
represents the distribution of examples over which the final system
performance P must be measured.

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 100


Learning
THE CONCEPT(CO1,2,3,4)
LEARNING TASK

1. One key attribute is whether the training experience


provides direct or indirect feedback regarding the choices
made by the performance system.

EXAMPLE:
• Checkers system learning from:
• Direct Training:
– Database example consisting of individual checkers board states and
the correct move for each.
• Indirect Training:
– Database of examples consisting of moves sequences and final
outcomes of the game played.

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 101


Learning
THE CONCEPT(CO1,2,3,4)
LEARNING TASK

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 102


Learning
THE CONCEPT(CO1,2,3,4)
LEARNING TASK

• The learner faces an additional problem of credit assignment.


• Where each move in the sequence deserves credit or blame
for the final out come.

• Credit assignment can be problem:


• Because the game can be lost even when early moves are
optimal if these are followed by poor moves.

• Hence the direct training is easier then learning from the


indirect.

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 103


Learning
THE CONCEPT(CO1,2,3,4)
LEARNING TASK

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 104


Learning
THE CONCEPT(CO1,2,3,4)
LEARNING TASK
2. A second attribute of the training experience is the degree to
which learner controls the sequence of examples.

EXAMPLES:
• Teacher to select information base states and provide the correct move for
each. This is passed down to learner. Teacher to Learner.
• Learner might itself propose board state that it finds particularly confusing
and ask the teacher for the correct move. Learner to Teacher.
• Learner might have complete control over both the board states and
indirect training and finds solution to itself. Teacher not required.
• Learner may choose between experimenting with novel based states it is
not yet considered. Learner experiments with changes.

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 105


Learning
THE CONCEPT(CO1,2,3,4)
LEARNING TASK

3. The third attribute of the training experience is how well it represents the
distribution of examples over which the final system performance P must be
measured.
1. Learning is most reliable when the training examples follow a
distribution similar to that of future test examples.
2. In checkers learning scenario the performance matrix P is the percent
of games the system within world tournament.
3. If the training experience is done only games played to itself the
problem is the experience is not distributed to the unexpected
situation.
Unexpected situation like: There are different checker champion with
different board states or moves.

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 106


Learning
THE CONCEPT(CO1,2,3,4)
LEARNING TASK
A checkers learning problem:
• Task T: playing checkers
• Performance measure P: percent of games won in the world
tournament
• Training experience E: games played against itself
• In order to complete the design of the learning system, we must
now choose
1. the exact type of knowledge to be, learned
2. a representation for this target knowledge
3. a learning mechanism

(For learning to play checkers watch the video


https://www.youtube.com/watch?v=m0drB0cx8pQ )

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 107


Learning
THE CONCEPT(CO1,2,3,4)
LEARNING TASK

2. Choosing the Target Function:


• The next design choice is to determine exactly what type of
knowledge will be learned and how this will be used by the
performance of a program.
• Let us begin with a checkers-playing program that can
generate the legal moves from any board state.
• The program needs only to learn how to choose the best
move from among these legal moves.
• Priori: Legal moves that define large space or best results at
the long stretch is called priori.

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 108


Learning
THE CONCEPT(CO1,2,3,4)
LEARNING TASK

2. Choosing the Target Function:


• A function that chooses the best move for any given board state is called
Target Function.

There are two types of Target Function discussed here.


• Choose Move
• Evaluation Function
– Non Operational definition
– Operational Definition
– Target Definition: v
– Target Function Approximation 𝑣!

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 109


Learning
THE CONCEPT(CO1,2,3,4)
LEARNING TASK

Choose Move Target Function:

• Choose move is represented as target function


• ChooseMove: B→M

• This accepts as input of board from the set of legal board states B
• Produces as output some move from the set of legal move M.

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 110


Learning
THE CONCEPT(CO1,2,3,4)
LEARNING TASK

Choose Move Target Function:


Choose Move Drawback:
• Choose move target function will turn out to be very difficult to
learn when indirect training experience is available in the system.

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 111


Learning
THE CONCEPT(CO1,2,3,4)
LEARNING TASK

2. Choosing the Target Function:

Evaluation Target Function:

• Assigns a numerical score to any given bard state.


• Target Function V
• Notion V: B→R
• V maps to any legal board state from the set B to some real value.
• If R is higher better results.

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 112


THE CONCEPT LEARNING TASK

• Move 1: 1(M),(R)
• Move 2(Opponent Cut): 5
• Move3: (yourself Cut): -5
• F(x)= M1+M2+M3+M4…….
• F(x) = V(b’)

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 113


Learning
THE CONCEPT(CO1,2,3,4)
LEARNING TASK

Possible Definition for Target Function V:


Let us therefore define the target value V(b) for an arbitrary
board state b in B, as follows:

• if b is a final board state that is won, then V(b) = 100


• if b is a final board state that is lost, then V(b) = -100
• if b is a final board state that is drawn, then V(b) = 0
• if b is a not a final state in the game, then V(b) = V(b’), where
b’ is the best final board state that can be achieved starting
from b and playing optimally until the end of the game
(assuming the opponent plays optimally, as well).

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 114


Learning
THE CONCEPT(CO1,2,3,4)
LEARNING TASK

• For playing checkers game V(b) is not efficiently computable, because this
does not give the exact real time solution. Hence it is called non
operational definition.
• The solution in this case is operational description V, which helps checkers
playing program to select best moves within the realistic time bounds.
• Represented as operational description of ideal function V.
• Hence the learning algorithms uses approximation to the function called
function approximation.
• Function approximation is used to understand V represented as 𝑣! is to
refer function approximation.

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 115


Learning
THE CONCEPT(CO1,2,3,4)
LEARNING TASK

3. Choosing a Representation for the Target Function:


• let us choose a simple representation for any given board
state, the function v(b) will be calculated as a linear
combination of the following board features:
• X1: the number of black pieces on the board
• X2: the number of red pieces on the board
• X3: the number of black kings on the board
• X4: the number of red kings on the board
• X5: the number of black pieces threatened by red (i.e., which
can be captured on red's next turn)
• X6: the number of red pieces threatened by black

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 116


Learning
THE CONCEPT(CO1,2,3,4)
LEARNING TASK

• Thus, our learning program will represent v(b) as a linear function


of the form:

• where W0 through W6 are numerical coefficients, or weights, to be


chosen by the learning algorithm.

• Learned values for the weights W1 through W6 will determine the


relative importance of the various board features in determining
the value of the board, whereas the weight wo will provide an
additive constant to the board value.

9/28/24 Dr. Roop Singh ACSML0601 Machine 117


Design a Learning
THE CONCEPT system
LEARNING TASK

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 118


Learning
THE CONCEPT(CO1,2,3,4)
LEARNING TASK

4. Choose a Function Approximation Algorithm


• In order to learn the target function V we require a set of
training examples, each describing a specific board state b and
the training value V#$%&' (b) for b.
• In other words, each training example is an ordered pair of
the form (b, V#$%&' (b) ).
• For instance, the following training example describes a board
state b in which black has won the game (note x2 = 0 indicates
that red has no remaining pieces) and for which the target
function value V#$%&' (b) is therefore +100.

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 119


Learning
THE CONCEPT(CO1,2,3,4)
LEARNING TASK

4. Choose a Function Approximation Algorithm


• Estimating Training Values:
• Adjusting The Weights:

• Estimating Training Values:


• At present training information only available is about game was
won or not.
• There is a need of examples which assign specific scores to specific
board.

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 120


Learning
THE CONCEPT(CO1,2,3,4)
LEARNING TASK

• Estimating Training Values:


• An approach is made to assign the training value of V𝒕𝒓𝒂𝒊𝒏 (b) for
$(successor(b)),
intermediate board state b to 𝒗
• Where 𝑣! is the learners current approximation to V.

• Successor(b) denotes the next board state of b.

• V𝒕𝒓𝒂𝒊𝒏 (b)←"
𝒗(successor(b))

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 121


Learning
THE CONCEPT(CO1,2,3,4)
LEARNING TASK

• Learning algorithm must choose the right weights 𝑤! to best fit the
set of training examples (b, V#$%&' (b)).

• An example having weights and x values is called hypothesis value.


• V&'()* (b) is called the training vales.

• If V#$%&' (b) - 𝑣(b)


$ is zero then the weights value taken is correct
otherwise error.

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 122


Learning
THE CONCEPT(CO1,2,3,4)
LEARNING TASK

• Error E is calculated as:

• There are several algorithms are known for finding weights of a


linear function that minimizes E.
• One such algorithm is least mean square.

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 123


Learning
THE CONCEPT(CO1,2,3,4)
LEARNING TASK

Adjusting the weights:

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 124


Learning
THE CONCEPT(CO1,2,3,4)
LEARNING TASK

5. The Final Design:

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 125


Learning
THE CONCEPT(CO1,2,3,4)
LEARNING TASK

9/28/24 126
Dr. Roop Singh ACSML0601 Machine Learning Unit 1
CONTENT
INTRODUCTION

Issues in machine learning

•Focusing Too Much on Algorithms and Theories


•Mastering ALL of ML
•Using Changing or Premade Tools
•Having Algorithms Become Obsolete as Soon as Data Grows
•Getting Bad Predictions to Come Together With Biases
•Making the Wrong Assumptions
•Having Bad Data Convert to Bad Results

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 127


THE
History of CONCEPT
Machine LEARNING
Learning TASK
(CO1)

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 128


History THE
of Machine Learning
CONCEPT LEARNING TASK(CO1)

• The early history of Machine Learning (Pre-1940):

• 1834: In 1834, Charles Babbage, the father of the computer, conceived a device
that could be programmed with punch cards. However, the machine was never
built, but all modern computers rely on its logical structure.
• 1936: In 1936, Alan Turing gave a theory that how a machine can determine and
execute a set of instructions.
• The era of stored program computers:
• 1940: In 1940, the first manually operated computer, "ENIAC" was invented, which
was the first electronic general-purpose computer. After that stored program
computer such as EDSAC in 1949 and EDVAC in 1951 were invented.
• 1943: In 1943, a human neural network was modeled with an electrical circuit. In
1950, the scientists started applying their idea to work and analyzed how human
neurons might work.

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 129


THE CONCEPT
Concept LEARNING
Learning (CO1) TASK

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 130


THE CONCEPT
Concept LEARNING
Learning (CO1) TASK

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 131


THE CONCEPT
Concept LEARNING
Learning (CO1) TASK

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 132


THE CONCEPT
Concept LEARNING
Learning (CO1) TASK

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 133


THE CONCEPT
Concept LEARNING
Learning (CO1) TASK

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 134


THE CONCEPT
Concept LEARNING
Learning (CO1) TASK

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 135


THE CONCEPT
Concept LEARNING
Learning (CO1) TASK

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 136


THE CONCEPT
Concept LEARNING
Learning (CO1) TASK

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 137


THE CONCEPT
Concept LEARNING
Learning (CO1) TASK

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 138


THE CONCEPT
Concept LEARNING
Learning (CO1) TASK

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 139


THE CONCEPT
Concept LEARNING
Learning (CO1) TASK

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 140


THE CONCEPT
Concept LEARNING
Learning (CO1) TASK

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 141


THE CONCEPT
Concept LEARNING
Learning (CO1) TASK

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 142


THE CONCEPT
Concept LEARNING
Learning (CO1) TASK

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 143


THE CONCEPT
Concept LEARNING
Learning (CO1) TASK

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 144


THE CONCEPT
Concept LEARNING
Learning (CO1) TASK

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 145


THE CONCEPT
Concept LEARNING
Learning (CO1) TASK

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 146


THE CONCEPT
Concept LEARNING
Learning (CO1) TASK

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 147


THE CONCEPT
Concept LEARNING
Learning (CO1) TASK

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 148


THE CONCEPT
Concept LEARNING
Learning (CO1) TASK

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 149


THE CONCEPT
Concept LEARNING
Learning (CO1) TASK

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 150


THE CONCEPT
Concept LEARNING
Learning (CO1) TASK

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 151


THE CONCEPT
Concept LEARNING
Learning (CO1) TASK

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 152


THE CONCEPT
Concept LEARNING
Learning (CO1) TASK

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 153


THE CONCEPT
Concept LEARNING
Learning (CO1) TASK

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 154


THE CONCEPT
Concept LEARNING
Learning (CO1) TASK

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 155


THE CONCEPT
Concept LEARNING
Learning (CO1) TASK

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 156


THE CONCEPT
Concept LEARNING
Learning (CO1) TASK

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 157


THE CONCEPT
Concept LEARNING
Learning (CO1) TASK

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 158


THE CONCEPT
Concept LEARNING
Learning (CO1) TASK

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 159


THE CONCEPT
Concept LEARNING
Learning (CO1) TASK

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 160


THE CONCEPT
Concept LEARNING
Learning (CO1) TASK

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 161


THE CONCEPT
Concept LEARNING
Learning (CO1) TASK

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 162


THE CONCEPT
Concept LEARNING
Learning (CO1) TASK

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 163


THE CONCEPT
Concept LEARNING
Learning (CO1) TASK

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 164


THE CONCEPT
Concept LEARNING
Learning (CO1) TASK

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 165


THE CONCEPT
Concept LEARNING
Learning (CO1) TASK

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 166


THE CONCEPT
Concept LEARNING
Learning (CO1) TASK

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 167


THE CONCEPT
Concept LEARNING
Learning (CO1) TASK

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 168


THE CONCEPT
Concept LEARNING
Learning (CO1) TASK

9/28/24 169
Dr. Roop Singh ACSML0601 Machine Learning Unit 1
THE CONCEPT
Concept LEARNING
Learning (CO1) TASK

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 170


THE CONCEPT
Concept LEARNING
Learning (CO1) TASK

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 171


THE CONCEPT
Concept LEARNING
Learning (CO1) TASK

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 172


THE CONCEPT
Concept LEARNING
Learning (CO1) TASK

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 173


THE CONCEPT
Concept LEARNING
Learning (CO1) TASK

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 174


THE CONCEPT
Concept LEARNING
Learning (CO1) TASK

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 175


THE CONCEPT
Concept LEARNING
Learning (CO1) TASK

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 176


THE CONCEPT
Concept LEARNING
Learning (CO1) TASK

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 177


THE CONCEPT
Concept LEARNING
Learning (CO1) TASK

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 178


History THE
of Machine Learning
CONCEPT LEARNING TASK(CO1)
• Computer machinery and intelligence:
• 1950: In 1950, Alan Turing published a seminal paper, "Computer
Machinery and Intelligence," on the topic of artificial intelligence. In his
paper, he asked, "Can machines think?"
• Machine intelligence in Games:
• 1952: Arthur Samuel, who was the pioneer of machine learning, created a
program that helped an IBM computer to play a checkers game. It
performed better more it played.
• 1959: In 1959, the term "Machine Learning" was first coined by Arthur
Samuel.
• The first "AI" winter:
• The duration of 1974 to 1980 was the tough time for AI and ML
researchers, and this duration was called as AI winter.
• In this duration, failure of machine translation occurred, and people had
reduced their interest from AI, which led to reduced funding by the
government to the researches.
9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 179
History THE
of Machine Learning
CONCEPT LEARNING TASK(CO1)

• Machine Learning from theory to reality


• 1959: In 1959, the first neural network was applied to a real-
world problem to remove echoes over phone lines using an
adaptive filter.
• 1985: In 1985, Terry Sejnowski and Charles Rosenberg
invented a neural network NETtalk, which was able to teach
itself how to correctly pronounce 20,000 words in one week.
• 1997: The IBM's Deep blue intelligent computer won the
chess game against the chess expert Garry Kasparov, and it
became the first computer which had beaten a human chess
expert.

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 180


History THE
of Machine Learning
CONCEPT LEARNING TASK(CO1)

• Machine Learning at 21st century


• 2006: In the year 2006, computer scientist Geoffrey Hinton has given a new name
to neural net research as "deep learning," and nowadays, it has become one of the
most trending technologies.
• 2012: In 2012, Google created a deep neural network which learned to recognize
the image of humans and cats in YouTube videos.
• 2014: In 2014, the Chabot "Eugen Goostman" cleared the Turing Test. It was the
first Chabot who convinced the 33% of human judges that it was not a machine.
• 2014: DeepFace was a deep neural network created by Facebook, and they
claimed that it could recognize a person with the same precision as a human can
do.
• 2016: AlphaGo beat the world's number second player Lee sedol at Go game. In
2017 it beat the number one player of this game Ke Jie.
• 2017: In 2017, the Alphabet's Jigsaw team built an intelligent system that was able
to learn the online trolling. It used to read millions of comments of different
websites to learn to stop online trolling.

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 181


History THE
of Machine Learning
CONCEPT LEARNING TASK(CO1)

• Machine Learning at present:

• Now machine learning has got a great advancement in its research, and it
is present everywhere around us, such as self-driving cars, Amazon Alexa,
Catboats, recommender system, and many more. It includes Supervised,
unsupervised, and reinforcement learning with clustering, classification,
decision tree, SVM algorithms, etc.

• Modern machine learning models can be used for making various


predictions, including weather prediction, disease prediction, stock
market analysis, etc.

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 182


THE
Introduction CONCEPT
of Machine LEARNING
Learning TASK
Approaches(CO1,2,3,4)

A Neural Network
• A neural network is a processing device, either an algorithm or an actual
hardware, whose design was inspired by the design and functioning of
animal brains and components thereof.

• The neural networks have ability to learn by example, which makes them
very flexible and powerful.

• These networks are also well suited for real-time systems because of their
fast response and computational times which are because of their parallel
architecture.

Dr. Roop Singh ACSML0601 Machine Learning Unit 1


9/28/24 183
Introduction of Machine
THE CONCEPT Learning
LEARNING TASK
Approaches(CO1,2,3,4)
Artificial Neural Network: Definition:
• An artificial neural network (ANN) may be defined as an information
processing model that is inspired by the way biological nervous systems,
such as the brain, process information.
• This model tries to replicate only the most basic functions of the brain.
• The key element of ANN is the novel structure of its information
processing system.
• An ANN is composed of a large number of highly interconnected
processing elements (neurons) working in unison to solve specific
problems.
• Artificial neural networks, like people, learn by example.

Dr. Roop Singh ACSML0601 Machine Learning Unit 1


9/28/24 184
Introduction of Machine Learning
THE CONCEPT LEARNING TASK
Approaches(CO1,2,3,4)

Advantages of Neural Networks:

• Adaptive learning: An ANN is endowed with the ability to learn how to do


tasks based on the data given for training or initial experience.
• Self-organization: An ANN can create its own organization or
representation of the information it receives during learning time.
• Real-time operation: ANN computations may be carried out in parallel.
Special hardware devices are being designed and manufactured to rake
advantage of this capability of ANNs.
• Fault tolerance via redundant information coding: Partial destruction of a
neural network leads to the corresponding degradation of performance.
However, some network capabilities may be retrained even after major
network damage.

Dr. Roop Singh ACSML0601 Machine Learning Unit 1


9/28/24 185
THE
Introduction CONCEPT
of Machine LEARNING
Learning TASK
Approaches(CO1,2,3,4)

Dr. Roop Singh ACSML0601 Machine Learning Unit 1


9/28/24 186
THE
Introduction CONCEPT
of Machine LEARNING
Learning TASK
Approaches(CO1,2,3,4)

Application Scope of Neural Networks:


• Air traffic control.
• Animal behavior, predator/prey relationships and population cycles.
• Appraisal and valuation of property, buildings, automobiles, machinery,
etc.
• Betting on horse races, stock markets, sporting events, etc.
• Criminal sentencing could be predicted using a large sample of crime
details as input and the resulting sentence as output.
• Complex physical and chemical processes that may involve the interaction
of numerous (possibly unknown) mathematical formulas could be
modeled heuristically using a neural network.
• Echo patterns from sonar, radar, seismic and magnetic instruments could
be used to predict their targets.

Dr. Roop Singh ACSML0601 Machine Learning Unit 1


9/28/24 187
THENetworks
Neural CONCEPT LEARNING
(CO1, CO2,TASK
CO3)

• An artificial neural network (ANN) is an efficient information processing


system which resembles in characteristics with a biological neural
network.
• ANNs possess large number of highly interconnected processing elements
called nodes or units or neuron, which usually operate in parallel and are
configured in regular architectures.
• Each neuron is connected with the other by a connection link.
• Each connection link is associated with weights which contain information
about input signals.
• This information is used by the neuron to solve a particular problem.

Dr. Roop Singh ACSML0601 Machine Learning Unit 1


9/28/24 188
THENetworks
Neural CONCEPT LEARNING
(CO1, CO2,TASK
CO3)

• To depict the basic operation of a neural net, consider a set of neurons, say X1
and X2, transmitting signals to another neuron, Y.
• Here X1 and X2 are input neurons, which transmit signals, and Y is the output
neuron, which receives signals.
• Input neurons X1 and X2 are connected to the output neuron Y, over a
weighted interconnection links (W1 and W2).

Activation Function

Dr. Roop Singh ACSML0601 Machine Learning Unit 1


9/28/24 189
BiologicalTHE CONCEPT
Neural LEARNING
Networks (CO1,TASK
CO2, CO3)

• A nerve cell neuron is a special biological cell that processes information.


• According to an estimation, there are huge number of neurons,
approximately 1011 with numerous interconnections, approximately 1015.

Dr. Roop Singh ACSML0601 Machine Learning Unit 1


9/28/24 190
BiologicalTHE CONCEPT
Neural LEARNING
Networks (CO1,TASK
CO2, CO3)

• The central nervous system (which includes the brain and spinal cord) is made up
of two basic types of cells:
• neurons (1) and glia (4) & (6).
• Glia outnumber neurons in some parts of the brain, but neurons are the key
players in the brain.
• Neurons are information messengers.
• They use electrical impulses and chemical signals to transmit information between
different areas of the brain, and between the brain and the rest of the nervous
system.
• Everything we think and feel and do would be impossible without the work of
neurons and their support cells, the glial cells called astrocytes (4) and
oligodendrocytes (6).

Dr. Roop Singh ACSML0601 Machine Learning Unit 1


9/28/24 191
BiologicalTHE CONCEPT
Neural LEARNING
Networks (CO1,TASK
CO2, CO3)

• The Architecture of Neuron

Dr. Roop Singh ACSML0601 Machine Learning Unit 1


9/28/24 192
BiologicalTHE CONCEPT
Neural LEARNING
Networks (CO1,TASK
CO2, CO3)

• Neurons have three basic parts: a cell body and two


extensions called an axon (5) and a dendrite (3).
• Within the cell body is a nucleus (2), which controls the cell’s
activities and contains the cell’s genetic material.
• The axon looks like a long tail and transmits messages from
the cell.
• Dendrites look like the branches of a tree and receive
messages for the cell.
• Neurons communicate with each other by sending chemicals,
called neurotransmitters, across a tiny space, called a synapse,
between the axons and dendrites of adjacent neurons.

Dr. Roop Singh ACSML0601 Machine Learning Unit 1


9/28/24 193
BiologicalTHE CONCEPT
Neural LEARNING
Networks (CO1,TASK
CO2, CO3)
There are three classes of neurons:
1. Sensory neurons carry information from the sense organs (such as the
eyes and ears) to the brain.
2. Motor neurons control voluntary muscle activity such as speaking and
carry messages from nerve cells in the brain to the muscles.
3. All the other neurons are called interneurons.

Dr. Roop Singh ACSML0601 Machine Learning Unit 1


9/28/24 194
BiologicalTHE CONCEPT
Neural LEARNING
Networks (CO1,TASK
CO2, CO3)

As shown in the above diagram, a typical neuron consists of the


following four parts with the help of which we can explain its
working −

– Dendrites − They are tree-like branches, responsible for receiving the


information from other neurons it is connected to. In other sense, we
can say that they are like the ears of neuron.
– Soma − It is the cell body of the neuron and is responsible for
processing of information, they have received from dendrites.
– Axon − It is just like a cable through which neurons send the
information.
– Synapses − It is the connection between the axon and other neuron
dendrites.

Dr. Roop Singh ACSML0601 Machine Learning Unit 1


9/28/24 195
BiologicalTHE CONCEPT
Neural LEARNING
Networks (CO1,TASK
CO2, CO3)

Dr. Roop Singh ACSML0601 Machine Learning Unit 1


9/28/24 196
BiologicalTHE CONCEPT
Neural LEARNING
Networks (CO1,TASK
CO2, CO3)
Biological Neural Network Artificial Neural Network
Soma Node
Dendrites Input
Synapse Weights or Interconnections
Axon Output

Dr. Roop Singh ACSML0601 Machine Learning Unit 1


9/28/24 197
BiologicalTHE CONCEPT
Neural LEARNING TASK
Networks(CO1, CO2, CO3)

• a

Dr. Roop Singh ACSML0601 Machine Learning Unit 1


9/28/24 198
ArtificialTHE CONCEPT
Neural LEARNING TASK
Networks(CO1, CO2, CO3)

Dr. Roop Singh ACSML0601 Machine Learning Unit 1


9/28/24 199
ArtificialTHE CONCEPT
Neural LEARNING TASK
Networks(CO1, CO2, CO3)

Dr. Roop Singh ACSML0601 Machine Learning Unit 1


9/28/24 200
THE CONCEPT
Model LEARNING
of ANN (CO1, CO2, TASK
CO3)

Dr. Roop Singh ACSML0601 Machine Learning Unit 1


9/28/24 201
THENetworks
Neural CONCEPT LEARNING
(CO1, CO2,TASK
CO3)

Characteristics of ANN:

• It is a neutrally implemented mathematical model.


• There exists a large number of highly interconnected processing elements
called neurons in an ANN.
• The interconnections with their weighted linkages hold the informative
knowledge.
• The input signals arrive at the processing elements through connections and
connecting weights.
• The processing elements of the ANN have the ability to learn, recall and
generalize from the given data by suitable assignment or adjustment of
weights.
• The computational power can be demonstrated only by the collective
behavior of neurons, and it should be noted that no single neuron carries
specific information.

Dr. Roop Singh ACSML0601 Machine Learning Unit 1


9/28/24 202
Introduction
THE CONCEPTof Machine Learning
LEARNING TASK
Approaches(CO1,2,3,4)

Introduction to Clustering
• Clustering methods are one of the most useful unsupervised
ML methods. These methods are used to find similarity as
well as the relationship patterns among data samples and
then cluster those samples into groups having similarity based
on features.
• Clustering is important because it determines the intrinsic
grouping among the present unlabeled data. They basically
make some assumptions about data points to constitute their
similarity. Each assumption will construct different but equally
valid clusters.

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 203


Introduction
THE CONCEPTof Machine Learning
LEARNING TASK
Approaches(CO1,2,3,4)
• For example, below is the diagram which shows clustering system grouped
together with the similar kind of data in different clusters −

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 204


Introduction
THE CONCEPTof Machine Learning
LEARNING TASK
Approaches(CO1,2,3,4)
Cluster Formation Methods

• It is not necessary that clusters will be formed in spherical form. Followings are some other cluster
formation methods −
Density-based
• In these methods, the clusters are formed as the dense region. The advantage of these methods is
that they have good accuracy as well as good ability to merge two clusters. Ex. Density-Based
Spatial Clustering of Applications with Noise (DBSCAN), Ordering Points to identify Clustering
structure (OPTICS) etc.
Hierarchical-based
• In these methods, the clusters are formed as a tree type structure based on the hierarchy. They
have two categories namely, Agglomerative (Bottom up approach) and Divisive (Top down
approach). Ex. Clustering using Representatives (CURE), Balanced iterative Reducing Clustering
using Hierarchies (BIRCH) etc.
Partitioning
• In these methods, the clusters are formed by portioning the objects into k clusters. Number of
clusters will be equal to the number of partitions. Ex. K-means, Clustering Large Applications based
upon randomized Search (CLARANS).
Grid
• In these methods, the clusters are formed as a grid like structure. The advantage of these methods
is that all the clustering operation done on these grids are fast and independent of the number of
data objects. Ex. Statistical Information Grid (STING), Clustering in Quest (CLIQUE).

9/28/24 205
Dr. Roop Singh ACSML0601 Machine Learning Unit 1
Introduction
THE CONCEPTof Machine Learning
LEARNING TASK
Approaches(CO1,2,3,4)
Types of ML Clustering Algorithms

The following are the most important and useful ML clustering algorithms −

• K-means Clustering
• This clustering algorithm computes the centroids and iterates until it finds optimal
centroid. It assumes that the number of clusters are already known. It is also called flat
clustering algorithm. The number of clusters identified from data by algorithm is
represented by ‘K’ in K-means.

• Mean-Shift Algorithm
• It is another powerful clustering algorithm used in unsupervised learning. Unlike K-
means clustering, it does not make any assumptions hence it is a non-parametric
algorithm.

• Hierarchical Clustering
• It is another unsupervised learning algorithm that is used to group together the
unlabeled data points having similar characteristics.

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 206


Introduction
THE CONCEPTof Machine Learning
LEARNING TASK
Approaches(CO1,2,3,4)
Applications of Clustering
• We can find clustering useful in the following areas −

• Data summarization and compression − Clustering is widely used in the areas where
we require data summarization, compression and reduction as well. The examples are
image processing and vector quantization.
• Collaborative systems and customer segmentation − Since clustering can be used to
find similar products or same kind of users, it can be used in the area of collaborative
systems and customer segmentation.
• Serve as a key intermediate step for other data mining tasks − Cluster analysis can
generate a compact summary of data for classification, testing, hypothesis generation;
hence, it serves as a key intermediate step for other data mining tasks also.
• Trend detection in dynamic data − Clustering can also be used for trend detection in
dynamic data by making various clusters of similar trends.
• Social network analysis − Clustering can be used in social network analysis. The
examples are generating sequences in images, videos or audios.
• Biological data analysis − Clustering can also be used to make clusters of images, videos
hence it can successfully be used in biological data analysis.

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 207


Introduction
THE CONCEPTof Machine Learning
LEARNING TASK
Approaches(CO1,2,3,4)
Reinforcement learning
• Reinforcement learning is an area of Machine Learning.
• It is about taking suitable action to maximize reward in a particular
situation.
• It is employed by various software and machines to find the best
possible behavior or path it should take in a specific situation.
• Reinforcement learning differs from the supervised learning in a
way that in supervised learning the training data has the answer key
with it so the model is trained with the correct answer itself
whereas in reinforcement learning, there is no answer but the
reinforcement agent decides what to do to perform the given task.
• In the absence of a training dataset, it is bound to learn from its
experience.

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 208


Introduction
THE CONCEPTof Machine Learning
LEARNING TASK
Approaches(CO1,2,3,4)

Reinforcement learning

Dr. Roop Singh ACSML0601 Machine


9/28/24 Dr. Hitesh Singh KCS 055 ML Unit 1 209
Learning Unit 1
Introduction
THE CONCEPTof Machine Learning
LEARNING TASK
Approaches(CO1,2,3,4)

• Example: The problem is as follows: We have an agent and a reward, with many hurdles in
between. The agent is supposed to find the best possible path to reach the reward. The
following problem explains the problem more easily.

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 210


Introduction
THE CONCEPTof Machine Learning
LEARNING TASK
Approaches(CO1,2,3,4)

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 211


Introduction
THE CONCEPTof Machine Learning
LEARNING TASK
Approaches(CO1,2,3,4)

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 212


Introduction
THE CONCEPTof Machine Learning
LEARNING TASK
Approaches(CO1,2,3,4)

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 213


Introduction
THE CONCEPTof Machine Learning
LEARNING TASK
Approaches(CO1,2,3,4)

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 214


Introduction
THE CONCEPTof Machine Learning
LEARNING TASK
Approaches(CO1,2,3,4)

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 215


Introduction
THE CONCEPTof Machine Learning
LEARNING TASK
Approaches(CO1,2,3,4)

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 216


Introduction
THE CONCEPTof Machine Learning
LEARNING TASK
Approaches(CO1,2,3,4)

• Main points in Reinforcement learning –

• Input: The input should be an initial state from which the


model will start
• Output: There are many possible output as there are variety
of solution to a particular problem
• Training: The training is based upon the input, The model will
return a state and the user will decide to reward or punish the
model based on its output.
• The model keeps continues to learn.
• The best solution is decided based on the maximum reward.

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 217


Introduction
THE CONCEPTof Machine Learning
LEARNING TASK
Approaches(CO1,2,3,4)

Reinforcement learning Supervised learning

Reinforcement learning is all about


making decisions sequentially. In simple
In Supervised learning the decision is
words we can say that the output
made on the initial input or the input
depends on the state of the current input
given at the start
and the next input depends on the output
of the previous input

In Reinforcement learning decision is Supervised learning the decisions are


dependent, So we give labels to independent of each other so labels are
sequences of dependent decisions given to each decision.

Example: Chess game Example: Object recognition

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 218


Introduction
THE CONCEPTof Machine Learning
LEARNING TASK
Approaches(CO1,2,3,4)
Various Practical applications of Reinforcement Learning –
• RL can be used in robotics for industrial automation.
• RL can be used in machine learning and data processing
• RL can be used to create training systems that provide custom
instruction and materials according to the requirement of students.

RL can be used in large environments in the following situations:


• A model of the environment is known, but an analytic solution is
not available;
• Only a simulation model of the environment is given (the subject of
simulation-based optimization)
• The only way to collect information about the environment is to
interact with it.

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 219


THE
Introduction CONCEPT
of Machine LEARNING
Learning TASK
Approaches(CO1,2,3,4)

Decision Tree :
• Decision Tree is a Supervised learning technique that can be used for both
classification and Regression problems, but mostly it is preferred for solving
Classification problems. It is a tree-structured classifier, where internal nodes
represent the features of a dataset, branches represent the decision rules and
each leaf node represents the outcome.
• In a Decision tree, there are two nodes, which are the Decision Node and Leaf
Node. Decision nodes are used to make any decision and have multiple
branches, whereas Leaf nodes are the output of those decisions and do not
contain any further branches.
• The decisions or the test are performed on the basis of features of the given
dataset.

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 220


Introduction of Machine Learning
THE CONCEPT LEARNING TASK
Approaches(CO1,2,3,4)

• It is a graphical representation for getting all the possible solutions


to a problem/decision based on given conditions.
• It is called a decision tree because, similar to a tree, it starts with
the root node, which expands on further branches and constructs a
tree-like structure.
• In order to build a tree, we use the CART algorithm, which stands
for Classification and Regression Tree algorithm.
• A decision tree simply asks a question, and based on the answer
(Yes/No), it further split the tree into subtrees.

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 221


Introduction of Machine Learning
THE CONCEPT LEARNING TASK
Approaches(CO1,2,3,4)

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 222


Introduction of Machine Learning
THE CONCEPT LEARNING TASK
Approaches(CO1,2,3,4)

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 223


Introduction of Machine Learning
THE CONCEPT LEARNING TASK
Approaches(CO1,2,3,4)

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 224


Introduction of Machine Learning
THE CONCEPT LEARNING TASK
Approaches(CO1,2,3,4)

• Why use Decision Trees?

• There are various algorithms in Machine learning, so choosing the best


algorithm for the given dataset and problem is the main point to
remember while creating a machine learning model. Below are the two
reasons for using the Decision tree:

• Decision Trees usually mimic human thinking ability while making a


decision, so it is easy to understand.
• The logic behind the decision tree can be easily understood because it
shows a tree-like structure.

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 225


Introduction of Machine Learning
THE CONCEPT LEARNING TASK
Approaches(CO1,2,3,4)

• Decision Tree Terminologies:

• Root Node: Root node is from where the decision tree starts. It represents the
entire dataset, which further gets divided into two or more homogeneous sets.
• Leaf Node: Leaf nodes are the final output node, and the tree cannot be
segregated further after getting a leaf node.
• Splitting: Splitting is the process of dividing the decision node/root node into sub-
nodes according to the given conditions.
• Branch/Sub Tree: A tree formed by splitting the tree.
• Pruning: Pruning is the process of removing the unwanted branches from the tree.
• Parent/Child node: The root node of the tree is called the parent node, and other
nodes are called the child nodes.

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 226


Introduction of Machine Learning
THE CONCEPT LEARNING TASK
Approaches(CO1,2,3,4)

• How does the Decision Tree algorithm Work?


• In a decision tree, for predicting the class of the given dataset, the algorithm starts from the
root node of the tree. This algorithm compares the values of root attribute with the record
(real dataset) attribute and, based on the comparison, follows the branch and jumps to the
next node.

• For the next node, the algorithm again compares the attribute value with the other sub-
nodes and move further. It continues the process until it reaches the leaf node of the tree.
The complete process can be better understood using the below algorithm:
• Step-1: Begin the tree with the root node, says S, which contains the complete dataset.
• Step-2: Find the best attribute in the dataset using Attribute Selection Measure (ASM).
• Step-3: Divide the S into subsets that contains possible values for the best attributes.
• Step-4: Generate the decision tree node, which contains the best attribute.
• Step-5: Recursively make new decision trees using the subsets of the dataset created in step -
3. Continue this process until a stage is reached where you cannot further classify the nodes
and called the final node as a leaf node.

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 227


Introduction of Machine Learning
THE CONCEPT LEARNING TASK
Approaches(CO1,2,3,4)

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 228


Introduction of Machine Learning
THE CONCEPT LEARNING TASK
Approaches(CO1,2,3,4)

• Bayesian networks:
• Bayesian networks are a type of Probabilistic Graphical Model that
can be used to build models from data and/or expert opinion.

• They can be used for a wide range of tasks including prediction,


anomaly detection, diagnostics, automated insight, reasoning, time
series prediction and decision making under uncertainty.
• Figure below shows these capabilities in terms of the four major
analytics disciplines, Descriptive analytics, Diagnostic analytics,
Predictive analytics and Prescriptive analytics.

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 229


Introduction of Machine Learning
THE CONCEPT LEARNING TASK
Approaches(CO1,2,3,4)

• Bayesian networks:

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 230


Introduction of Machine Learning
THE CONCEPT LEARNING TASK
Approaches(CO1,2,3,4)

• Bayesian networks:
• They are also commonly referred to as Bayes nets, Belief networks and sometimes
Causal networks.

• Probabilistic
• Bayesian networks are probabilistic (conditional probability) because they are
built from probability distributions and also use the laws of probability for
prediction and anomaly detection, for reasoning and diagnostics, decision making
under uncertainty and time series prediction.

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 231


Introduction of Machine Learning
THE CONCEPT LEARNING TASK
Approaches(CO1,2,3,4)

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 232


Introduction of Machine Learning
THE CONCEPT LEARNING TASK
Approaches(CO1,2,3,4)
• A Bayesian network is a (DAG) graph which is made up of Nodes and directed Links between
them.

• Nodes
• In many Bayesian networks, each node represents a Variable such as someone's height, age
or gender. A variable might be discrete, such as Gender = {Female, Male} or might be
continuous such as someone's age.
• The nodes and links form the structure of the Bayesian network, and we call this the
structural specification.

• Bayes Server supports both discrete and continuous variables.

• Discrete
• A discrete variable is one with a set of mutually exclusive states such as Gender = {Female,
Male}.

• Continuous
• Bayes Server support continuous variables with Conditional Linear Gaussian distributions
(CLG). This simply means that continuous distributions can depend on each other (are
multivariate) and can also depend on one or more discrete variables.

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 233


Introduction of Machine Learning
THE CONCEPT LEARNING TASK
Approaches(CO1,2,3,4)

• Bayesian networks:

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 234


Introduction of Machine Learning
THE CONCEPT LEARNING TASK
Approaches(CO1,2,3,4)

• Links
• Links are added between nodes to indicate that one node directly influences the other. When
a link does not exist between two nodes, this does not mean that they are completely
independent, as they may be connected via other nodes. They may however become
dependent or independent depending on the evidence that is set on other nodes.
• Structural learning
• Bayes Server include a Structural learning algorithm for Bayesian networks, which can
automatically determine the required links from data.
• Feature selection
• Bayes Server supports a Feature selection algorithm which can help determine which
variables are most likely to influence another. This can be helpful when determining the
structure of a model.

• https://www.bayesserver.com/docs/introduction/bayesian-
networks

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 235


Introduction of Machine Learning
THE CONCEPT LEARNING TASK
Approaches(CO1,2,3,4)

• Introduction to SVM
• Support vector machines (SVMs) are powerful yet flexible
supervised machine learning algorithms which are used both
for classification and regression.
• But generally, they are used in classification problems.
• In 1960s, SVMs were first introduced but later they got
refined in 1990.
• SVMs have their unique way of implementation as compared
to other machine learning algorithms.
• Lately, they are extremely popular because of their ability to
handle multiple continuous and categorical variables.

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 236


Introduction of Machine Learning
THE CONCEPT LEARNING TASK
Approaches(CO1,2,3,4)

• Generally, Support Vector Machines is considered to be a classification approach, it

but can be employed in both types of classification and regression problems.


• It can easily handle multiple continuous and categorical variables.

• SVM constructs a hyperplane in multidimensional space to separate different


classes.
• SVM generates optimal hyperplane in an iterative manner, which is used to

minimize an error.
• The core idea of SVM is to find a maximum marginal hyperplane(MMH) that best
divides the dataset into classes.

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 237


Introduction of Machine Learning
THE CONCEPT LEARNING TASK
Approaches(CO1,2,3,4)

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 238


Introduction of Machine Learning
THE CONCEPT LEARNING TASK
Approaches(CO1,2,3,4)

• Support Vectors
• Support vectors are the data points, which are closest to the hyperplane. These
points will define the separating line better by calculating margins. These points
are more relevant to the construction of the classifier.

• Hyperplane
• A hyperplane is a decision plane which separates between a set of objects having
different class memberships.

• Margin
• A margin is a gap between the two lines on the closest class points. This is
calculated as the perpendicular distance from the line to support vectors or closest
points. If the margin is larger in between the classes, then it is considered a good
margin, a smaller margin is a bad margin.

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 239


Introduction of Machine Learning
THE CONCEPT LEARNING TASK
Approaches(CO1,2,3,4)

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 240


Introduction of Machine Learning
THE CONCEPT LEARNING TASK
Approaches(CO1,2,3,4)

• How does SVM work?


• The main objective is to segregate the given dataset in the best possible
way.
• The distance between the either nearest points is known as the margin.
• The objective is to select a hyperplane with the maximum possible margin
between support vectors in the given dataset.
• SVM searches for the maximum marginal hyperplane in the following
steps:
1. Generate hyperplanes which segregates the classes in the best way. Figure
showing three hyperplanes black, blue and orange. Here, the blue and
orange have higher classification error, but the black is separating the two
classes correctly.
2. Select the right hyperplane with the maximum segregation from the either
nearest data points as shown in the right-hand side figure.

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 241


Introduction of Machine Learning
THE CONCEPT LEARNING TASK
Approaches(CO1,2,3,4)

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 242


Introduction of Machine Learning
THE CONCEPT LEARNING TASK
Approaches(CO1,2,3,4)

• Dealing with non-linear and inseparable planes

• Some problems can’t be solved using linear hyperplane, as shown in the


figure below (left-hand side).

• In such situation, SVM uses a kernel trick to transform the input space to a
higher dimensional space as shown on the right. The data points are
plotted on the x-axis and z-axis (Z is the squared sum of both x and y:
z=x^2=y^2). Now you can easily segregate these points using linear
separation.

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 243


Introduction of Machine Learning
THE CONCEPT LEARNING TASK
Approaches(CO1,2,3,4)

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 244


Introduction of Machine Learning
THE CONCEPT LEARNING TASK
Approaches(CO1,2,3,4)

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 245


Introduction of Machine Learning
THE CONCEPT LEARNING TASK
Approaches(CO1,2,3,4)

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 246


Introduction of Machine Learning
THE CONCEPT LEARNING TASK
Approaches(CO1,2,3,4)

• SVM Kernels
• The SVM algorithm is implemented in practice using a kernel.
• A kernel transforms an input data space into the required
form.
• SVM uses a technique called the kernel trick. Here, the kernel
takes a low-dimensional input space and transforms it into a
higher dimensional space.
• In other words, you can say that it converts no separable
problem to separable problems by adding more dimension to
it.
• It is most useful in non-linear separation problem.

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 247


Introduction of Machine Learning
THE CONCEPT LEARNING TASK
Approaches(CO1,2,3,4)
• Types of Kernel:
• Linear Kernel: A linear kernel can be used as normal dot product any two given
observations. The product between two vectors is the sum of the multiplication of
each pair of input values.

• K(x, xi) = sum(x * xi)

• Polynomial Kernel: A polynomial kernel is a more generalized form of the linear


kernel. The polynomial kernel can distinguish curved or nonlinear input space.

• K(x,xi) = 1 + sum(x * xi)^d

• Where d is the degree of the polynomial. d=1 is similar to the linear


transformation. The degree needs to be manually specified in the learning
algorithm.
9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 248
Introduction of Machine Learning
THE CONCEPT LEARNING TASK
Approaches(CO1,2,3,4)
• Types of Kernel:
• Linear Kernel: A linear kernel can be used as normal dot product any two given
observations. The product between two vectors is the sum of the multiplication of
each pair of input values.

• K(x, xi) = sum(x * xi)

• Polynomial Kernel: A polynomial kernel is a more generalized form of the linear


kernel. The polynomial kernel can distinguish curved or nonlinear input space.

• K(x,xi) = 1 + sum(x * xi)^d

• Where d is the degree of the polynomial. d=1 is similar to the linear


transformation. The degree needs to be manually specified in the learning
algorithm.
9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 249
Introduction of Machine Learning
THE CONCEPT LEARNING TASK
Approaches(CO1,2,3,4)

• Radial Basis Function Kernel: The Radial basis function kernel is a popular
kernel function commonly used in support vector machine classification.
RBF can map an input space in infinite dimensional space.

• K(x,xi) = exp(-gamma * sum((x – xi^2))

• Here gamma is a parameter, which ranges from 0 to 1. A higher value of


gamma will perfectly fit the training dataset, which causes over-fitting.
Gamma=0.1 is considered to be a good default value. The value of gamma
needs to be manually specified in the learning algorithm.

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 250


Introduction of Machine Learning
THE CONCEPT LEARNING TASK
Approaches(CO1,2,3,4)

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 251


Introduction of Machine Learning
THE CONCEPT LEARNING TASK
Approaches(CO1,2,3,4)

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 252


Introduction of Machine Learning
THE CONCEPT LEARNING TASK
Approaches(CO1,2,3,4)

Genetic Algorithms – Introduction

• Genetic Algorithm (GA) is a search-based optimization technique


based on the principles of Genetics and Natural Selection.
• It is frequently used to find optimal or near-optimal solutions to
difficult problems which otherwise would take a lifetime to solve.
• It is frequently used to solve optimization problems, in research,
and in machine learning.

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 253


Introduction of Machine Learning
THE CONCEPT LEARNING TASK
Approaches(CO1,2,3,4)

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 254


Introduction of Machine Learning
THE CONCEPT LEARNING TASK
Approaches(CO1,2,3,4)

What are Genetic Algorithms?

• Nature has always been a great source of inspiration to all


mankind.
• Genetic Algorithms (GAs) are search based algorithms based
on the concepts of natural selection and genetics.
• GAs are a subset of a much larger branch of computation
known as Evolutionary Computation.
• GAs were developed by John Holland and his students and
colleagues at the University of Michigan, most notably David
E. Goldberg and has since been tried on various optimization
problems with a high degree of success.

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 255


Introduction of Machine Learning
THE CONCEPT LEARNING TASK
Approaches(CO1,2,3,4)
What are Genetic Algorithms?

• In GAs, we have a pool or a population of possible solutions to the given


problem.
• These solutions then undergo recombination and mutation (like in natural
genetics), producing new children, and the process is repeated over various
generations.
• Each individual (or candidate solution) is assigned a fitness value (based on its
objective function value) and the fitter individuals are given a higher chance to
mate and yield more “fitter” individuals.
• This is in line with the Darwinian Theory of “Survival of the Fittest”.

• In this way we keep “evolving” better individuals or solutions over


generations, till we reach a stopping criterion.

• Genetic Algorithms are sufficiently randomized in nature, but they perform


much better than random local search (in which we just try various random
solutions, keeping track of the best so far), as they exploit historical
information as well.

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 256


Introduction of Machine Learning
THE CONCEPT LEARNING TASK
Approaches(CO1,2,3,4)

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 257


Introduction of Machine Learning
THE CONCEPT LEARNING TASK
Approaches(CO1,2,3,4)

Advantages of GAs

• Does not require any derivative information (which may not be


available for many real-world problems).
• Is faster and more efficient as compared to the traditional methods.
• Has very good parallel capabilities.
• Optimizes both continuous and discrete functions and also multi-
objective problems.
• Provides a list of “good” solutions and not just a single solution.
• Always gets an answer to the problem, which gets better over the
time.
• Useful when the search space is very large and there are a large
number of parameters involved.

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 258


Introduction of Machine Learning
THE CONCEPT LEARNING TASK
Approaches(CO1,2,3,4)

Limitations of GAs
• GAs are not suited for all problems, especially problems which
are simple and for which derivative information is available.
• Fitness value is calculated repeatedly which might be
computationally expensive for some problems.
• Being stochastic, there are no guarantees on the optimality or
the quality of the solution.
• If not implemented properly, the GA may not converge to the
optimal solution.

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 259


Data Science Vs. Machine Learning and AI
THE CONCEPT LEARNING TASK
(CO1,2,3,4)

Artificial Intelligence Machine Learning Data Science


Subset of Artificial Includes various Data
Includes Machine Learning.
Intelligence. Operations.

Artificial Intelligence combines


Data Science works by
large amounts of data through Machine Learning uses
sourcing, cleaning, and
iterative processing and efficient programs that can
processing data to extract
intelligent algorithms to help use data without being
meaning out of it for analytical
computers learn explicitly told to do so.
purposes.
automatically.

The popular tools that


Some of the popular tools that Some of the popular tools
Machine Learning makes use
AI uses are- used by Data Science are-1.
of are-1. Amazon Lex2. IBM
1. TensorFlow2. Scikit Learn SAS2. Tableau3. Apache
Watson Studio3. Microsoft
3. Keras Spark4. MATLAB
Azure ML Studio

Data Science deals with


Artificial Intelligence uses logic Machine Learning uses
structured and unstructured
and decision trees. statistical models.
data.

Recommendation Systems Fraud Detection and


Chatbots, and Voice assistants such as Spotify, and Facial Healthcare analysis are
are popular applications of AI. Recognition are popular popular examples of Data
examples. Science.

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 260


THE CONCEPT LEARNING
Assignment 1: TASK

1. Define Machine Learning. Discuss with examples why machine learning is important.
2. Discuss with examples some useful applications of machine learning.
3. Explain how some areas/disciplines that influenced the machine learning.
4. What do you mean by a well–posed learning problem? Explain the important features that are
required to well–define a learning problem.
5. Define learning program for a given problem. Describe the following problems with respect to
Tasks, Performance and Experience:
a. Checkers Learning Problems
b. Handwritten Recognition Problem

c. Robot Driving Learning Problem


6. Describe in detail all the steps involved in designing a learning system.
7. Discuss the perspective and issues in machine learning.

• NOTE: All Students have to write this assignment in separate note


book.

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 261


THE CONCEPT LEARNING
Assignment 2: TASK

1. What is Artificial Neural Network?


2. What are the type of problems in which Artificial Neural Network can be
applied?
3. What is difference between BNN and ANN ?
4. Explain the k-Means Algorithm with an example.
5. What is Reinforcement Learning? Explain with the help of example.
6. Explain Bayesian networks with the help of Examples.
7. Explain Support Vector Machine in details. Describe their importance.
8. Explain Genetic Algorithms in details.

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 262


THE CONCEPT
Daily LEARNING
Quiz TASK

1. What is the main task of a problem-solving agent?


a) Solve the given problem and reach to goal
b) To find out which sequence of action will get it to the goal state
c) All of the mentioned
d) None of the mentioned

2. What is state space?


a) The whole problem
b) Your Definition to a problem
c) Problem you design
d) Representing your problem with variable and parameter

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 263


THE CONCEPT
Daily LEARNING
Quiz TASK

3. The problem-solving agent with several immediate options of


unknown value can decide what to do by just examining different
possible sequences of actions that lead to states of known value,
and then choosing the best sequence. This process of looking for
such a sequence is called Search.
a) True
b) False

4. A search algorithm takes _________ as an input and returns


________ as an output.
a) Input, output
b) Problem, solution
c) Solution, problem
d) Parameters, sequence of actions

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 264


THE CONCEPT
Daily LEARNING
Quiz TASK

5. A problem in a search space is defined by one of these state.


a) Initial state
b) Last state
c) Intermediate state
d) All of the mentioned

6. The Set of actions for a problem in a state space is formulated


by a ___________
a) Intermediate states
b) Initial state
c) Successor function, which takes current action and returns next
immediate state
d) None of the mentioned

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 265


THEGlossary
CONCEPTQuestions
LEARNING TASK

1. A solution to a problem is a ……………from the initial state to a


goal state. Solution quality is measured by the path cost function,
and an optimal solution has the highest path cost among all
solutions.
a) Path
b) Road

2. The process of removing detail from a given state


representation is called ______
a) Extraction
b) Abstraction
c) Information Retrieval
d) Mining of data

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 266


THEGlossary
CONCEPTQuestions
LEARNING TASK

3. A problem solving approach works well for ______________


a) 8-Puzzle problem
b) 8-queen problem
c) Finding a optimal path from a given source to a destination
d) Mars Hover (Robot Navigation)

4. The _______ is a touring problem in which each city must be


visited exactly once. The aim is to find the shortest tour.
a) Finding shortest path between a source and a destination
b) Travelling Salesman problem
c) Map coloring problem
d) Depth first search traversal on a given map represented as a
graph

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 267


THE CONCEPT
MCQLEARNING TASK

1. Web Crawler is a/an ____________


a) Intelligent goal-based agent
b) Problem-solving agent
c) Simple reflex agent
d) Model based agent

2. What is the major component/components for measuring the


performance of problem solving?
a) Completeness
b) Optimality
c) Time and Space complexity
d) All of the mentioned

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 268


THE CONCEPT
MCQLEARNING TASK

3. A production rule consists of ____________


a) A set of Rule
b) A sequence of steps
c) Set of Rule & sequence of steps
d) Arbitrary representation to problem

4. Which search method takes less memory?


a) Depth-First Search
b) Breadth-First search
c) Linear Search
d) Optimal search

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 269


THE CONCEPT
MCQLEARNING TASK

5. Which is the best way to go for Game playing problem?


a) Linear approach
b) Heuristic approach (Some knowledge is stored)
c) Random approach
d) An Optimal approach

6. Which of the following applications include in the Strategic


Computing Program?
a) battle management
b) autonomous systems
c) pilot’s associate
d) all of the mentioned

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 270


THE CONCEPT
MCQLEARNING TASK

7. How many things are concerned in the design of a learning


element?
a) 1
b) 2
c) 3
d) 4

8. What is used in determining the nature of the learning


problem?
a) Environment
b) Feedback
c) Problem
d) All of the mentioned

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 271


THE CONCEPT
MCQLEARNING TASK

9. How many types are available in machine learning?


a) 1
b) 2
c) 3
d) 4

10. Which is used for utility functions in game playing algorithm?


a) Linear polynomial
b) Weighted polynomial
c) Polynomial
d) Linear weighted polynomial

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 272


Faculty VideoTHE
Links, Youtube & LEARNING
CONCEPT NPTEL Video Links
TASKand Online
Courses Details

Youtube video-

•https://www.youtube.com/watch?v=PDYfCkLY_DE
•https://www.youtube.com/watch?v=ncOirIPHTOw
•https://www.youtube.com/watch?v=cW03t3aZkmE

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 273


THEWeekly
CONCEPT LEARNING TASK
Assignment

Assignment 1
•Describe Machine Learning with suitable examples.[CO1]
•Brief the well defined learning problems. [CO1]
•Define the process of Designing a Learning System? [CO1]
•Explain different perspective and Issues in Machine Learning. [CO1]
•Define hypotheses. [CO1]
•Analyze THE CONCEPT LEARNING TASK - General-to-specific
ordering of hypotheses? [CO1]
•Illustrate Find-S algorithm. [CO1]
•Describe List-Then-Eliminate algorithm. [CO1]
•Define Candidate elimination algorithm with example. [CO1]
•Briefly explain Inductive bias. [CO1]

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 274


THEOld
CONCEPT LEARNING
Question Papers TASK

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 275


THEOld
CONCEPT LEARNING
Question Papers TASK

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 276


THEQuestions
Expected CONCEPT LEARNING TASK
for University Exam

•Illustrate Find-S algorithm. [CO1]


•Describe List-Then-Eliminate algorithm. [CO1]
•Define Candidate elimination algorithm with example. [CO1]
•Briefly explain Inductive bias. [CO1]
•Describe Machine Learning with suitable examples.[CO1]
•Brief the well defined learning problems. [CO1]
•Define the process of Designing a Learning System? [CO1]
•Explain different perspective and Issues in Machine Learning. [CO1]
•Define hypotheses. [CO1]
•Analyze THE CONCEPT LEARNING TASK - General-to-specific
ordering of hypotheses? [CO1]

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 277


THE CONCEPT LEARNING TASK
References

Text books:

1. Tom M. Mitchell, ―Machine Learning, McGraw-Hill Education


(India) Private Limited, 2013.
2. Ethem Alpaydin, ―Introduction to Machine Learning (Adaptive
Computation and Machine Learning), The MIT Press 2004.
3. Stephen Marsland, ―Machine Learning: An Algorithmic
Perspective, CRC Press, 2009.
4. Bishop, C., Pattern Recognition and Machine Learning. Berlin:
Springer-Verlag.

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 278


THE CONCEPT LEARNING
Recap of Unit TASK

• Concept learning can be seen as a problem of searching through


a large predefined space of potential hypotheses.
• The general-to-specific partial ordering of hypotheses provides a
useful structure for organizing the search through the hypothesis
space.
• The FIND-S algorithm utilizes this general-to-specific ordering,
performing a specific-to-general search through the
hypothesis space along one branch of the partial ordering, to
find the most specific hypothesis consistent with the training
examples.

9/28/24 Dr. Roop Singh ACSML0601 Machine Learning Unit 1 279

You might also like