Course Name : MACHINE LEARNING
Course Code : 23AM01
Course Instructor :Dr S Naganjaneyulu
Semester : VI
Regulation : R23
1
20AM01- MACHINE LEARNING
2
20AD04- MACHINE LEARNING
3
Course Outcomes:
At the end of this course, the student will be able to
UNIT-I: SYLLABUS
Introduction to Machine Learning:
Introduction:
What is ‘Artificial Intelligence?
(or)
6
12/13/2025
ARTIFICIAL INTELLIGENCE, MACHINE LEARNING, AND DEEP LEARNING
7
12/13/2025
WHAT IS MACHINE LEARNING?
‘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.’
MACHINE LEARNING:
“A computer program is said to learn from experience E with respect to a task T and performance measure P if its performance at task T improves with experience E.”
(or)
Machine Learning is a technique where computers learn from examples (data) and improve their performance automatically.
Figure. ML Paradigm
5 / 38
10
12/13/2025
1.2 WHAT IS MACHINE LEARNING? Cont…
1.2.1 How do machines learn? Cont…
For example, a broad pool of knowledge may consist of all living animals and their characteristics such as
ML vs. Deep Learning (cont’d)
ML vs. Deep Learning (Cont’d)
14
12/13/2025
Evolution of Machine Learning
Evolution of Machine Learning
1.3 TYPES OF MACHINE LEARNING
1. Supervised learning – Also called predictive learning. A machine predicts the class of unknown objects based on prior class-related information of similar objects.
2. Unsupervised learning – Also called descriptive learning. A machine finds patterns in unknown objects by grouping similar objects together.
3. Reinforcement learning – A machine learns to act on its own to achieve the given goals.
Machine Learning Types:
class A
class B
Classification
Regression
Clustering
1.3 TYPES OF MACHINE LEARNING Cont….
Supervised learning
1.3 TYPES OF MACHINE LEARNING Cont….
1.3.1 Supervised learning
Examples of supervised learning:
1.3.1 SUPERVISED LEARNING Cont….
1.3.1.1 Classification
Some typical classification problems include:
1.3.1 SUPERVISED LEARNING Cont….
1.3.1.2 Regression
Solution: A simple linear regression model can be applied with investment as predictor variable and sales revenue as the target variable.
A typical linear regression model can be represented in the form –
where ‘x’ is the predictor variable and ‘y’ is the target variable.
1.3.1 SUPERVISED LEARNING Cont….
1.3.1.2 Regression
Eg: The Iris data set is typically used as a training data for solving the classification problem of predicting the flower species based on feature values.
Applications of regression:
Supervised Learning:
�Applications of Supervised Learning�
1.3.2 UNSUPERVISED LEARNING
1.3.2 UNSUPERVISED LEARNING Cont…
Unsupervised Learning
�Applications of Unsupervised Learning�
�Semi-Supervised Learning�
1.3.2 REINFORCEMENT LEARNING
1.3.2 REINFORCEMENT LEARNING
1.3.2 REINFORCEMENT LEARNING
1.3.2 Comparison of Supervised, Unsupervised and Reinforcement Learning
1.3.2 Comparison of Supervised, Unsupervised and Reinforcement Learning Cont…
1.4 Applications of Machine Learning
Seven steps in Machine Learning :
1. Gathering Data
2. Preparing Data
3. Choosing a Model/ Algorithm
4. Training
5. Evaluation-How well did we do? (testing phase)
6. Hyper parameter tuning
7. Prediction -> Deployment
37
12/13/2025
1.6 Machine Learning Activities
Preparation activities to be done on the input data:
1.6 Machine Learning Activities Cont…
Fig. Detailed process of machine learning
1.6 Machine Learning Activities Cont…
Table. Activities in Machine Learning
1.7 BASIC TYPES OF DATA IN MACHINE LEARNING
FIG. Student data set
FIG. Data set records and attributes
Learning by Rote
Working of Learning by Rote
Step-by-Step Working
42
12/13/2025
Benefits of Learning by rote:
Learning by Induction:
Training examples:
1.7 BASIC TYPES OF DATA IN MACHINE LEARNING Cont...
Data can broadly be divided into two types:
1. Qualitative data
2. Quantitative data
Eg: 1. Blood group: A, B, O, AB, etc.
2. Nationality: Indian, American, British, etc.
3. Gender: Male, Female, Other
1.7 BASIC TYPES OF DATA IN MACHINE LEARNING Cont...
Eg:
1. Customer satisfaction: ‘Very Happy’, ‘Happy’, ‘Unhappy’, etc.
2. Grades: A, B, C, etc.
3. Hardness of Metal: ‘Very Hard’, ‘Hard’, ‘Soft’, etc.
1.7 BASIC TYPES OF DATA IN MACHINE LEARNING Cont...
1. Interval data
2. Ratio data
1.7 BASIC TYPES OF DATA IN MACHINE LEARNING Cont...
Types of DATA
The data can be both Numeric or quantitative and Categorical or Qualitative in nature.
Numeric or Quantitative data is in numeric form , which can be discrete that includes finite numerical values or continuous which also takes fractional values apart from finite values. For instance, the number of girls in a class can only take finite values, so it is a discrete variable, while the cost of a product is a continuous variable.
Categorical or Qualitative data is not-numerical which can be based on methods such as interviews, grades given in an exam etc. It can be nominal and ordinal, where nominal data does not contains any order such as the gender, marital status, while ordinal data has a particular order such as ratings of a movie, sizes of a shirt.
� Numeric or Quantitative data
Discrete: A variable that can only take a certain number of values (either text or numbers). For example, the variable Color where values could be black, blue, red, yellow, and so on, or the variable Score where the variable can only take values 1, 2, 3, 4, or 5.
Continuous: A variable where an infinite number of numeric values are possible within a specific range. An example of a continuous value is temperature where between the minimum and maximum temperature, the variable could take any value.
Discrete
Continuous
Measures of Central Tendency
Mean�
Median��
Mode��
1.8 EXPLORING STRUCTURE OF DATA
1.8.1 EXPLORING NUMERIC DATA
1.8.1 EXPLORING NUMERIC DATA Cont…
1.8.1 EXPLORING NUMERIC DATA Cont…
1. Dispersion of data
2. Position of the different data values
1. Measuring Dispersion of data
1. Attribute 1 values : 44, 46, 48, 45, and 47
2. Attribute 2 values : 34, 46, 59, 39, and 52
Understanding data spread
1.8.1 EXPLORING NUMERIC DATA Cont…
Machine Learning Life Cycle
It consists of seven phases
Data Collection:
Data Preparation (Data Cleaning)
Feature Engineering & Selection
Model Selection
Model Training
Model Evaluation
Deployment & Monitoring
Data Acquisition:
Steps Involved in Data Acquisition
Feature Engineering:
Steps Involved in Data Acquisition
Data Representations:
Bar Chart
Histogram
Pie Chart
Frequency Distribution Table
Line Graph
Scatter Plot
Unit-1 Question Bank