Cs3491 - Aiml - Unit III - Linear Regression Models
Cs3491 - Aiml - Unit III - Linear Regression Models
Engineering
Regulation 21
Semester: III
K.Sumithra Devi
Assistant Professor
CSE
1
KCG DEPARTMENT OF CSE 1
UNIT III SUPERVISED LEARNING – LINEAR REGRESSION MODELS
K3
17
KCG DEPARTMENT OF CSE 17
18
KCG DEPARTMENT OF CSE 18
Cost Function
To find the MSE, take the observed value, subtract the predicted value, and square
that difference. Repeat that for all observations.
Gradient:
• A gradient is nothing but a derivative that defines the effects on
outputs of the function with a little bit of variation in inputs.
• Gradient Descent (GD) is a widely used optimization algorithm in
machine learning and deep learning that minimises the cost function
of a neural network model during training.
• It works by iteratively adjusting the weights or parameters of the
model in the direction of the negative gradient of the cost function
until the minimum of the cost function is reached.
21
KCG DEPARTMENT OF CSE 21
22
KCG DEPARTMENT OF CSE 22
23
KCG DEPARTMENT OF CSE 23
24
KCG DEPARTMENT OF CSE 24
25
KCG DEPARTMENT OF CSE 25
26
KCG DEPARTMENT OF CSE 26
27
KCG DEPARTMENT OF CSE 27
28
KCG DEPARTMENT OF CSE 28
29
KCG DEPARTMENT OF CSE 29
30
KCG DEPARTMENT OF CSE 30
Steps in Gradient Decent:
31
KCG DEPARTMENT OF CSE 31
32
KCG DEPARTMENT OF CSE 32
Learning Rate
33
KCG DEPARTMENT OF CSE 33
34
KCG DEPARTMENT OF CSE 34