Training Models Chapter 4 Hands on Machine Learning Book

EngineerUmar3 58 views 9 slides Apr 25, 2024
Slide 1
Slide 1 of 9
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9

About This Presentation

Powerpoint presentation of chapter 4 Hands on Machine Learning (Training Model)


Slide Content

Model Training Muhammad Umar UIAI Lab

Contents Linear Regression Gradient Descent Polynomial Regression Learning Curve Regularized Linear Models Logistic Regression

Linear Regression n : size of data x : input data Mean Squared Error Cost function Predicted Value – Actual Value Similar to the actual values, MSE value is small  

Gradient Descent and its types Method to find local optima (maximum or minimum) To adjust the parameters repeatedly to minimize the cost function Gradient tells us direction of greatest increase Learning step is learning rate Cost Local minimum Global minimum Plateau Figure: Gradient Descent pitfalls Cost Start Figure: Learning Rate Batch Gradient Descent Mini-Batch Gradient Descent Stochastic Gradient Descent Types

Polynomial Regression Figure: Non-Linear Dataset Figure: Polynomial Regression Predictions Not linear, complex shape Add the increments of each characteristics as a new characteristic Train linear models on datasets with extended characteristics.

Learning curve Learning curve shows how accuracy changes with varying sample size. Make subset in training set and train several times. Figure: Learning Curve

Regularized Linear models : Parameter for regulate   Figure: Ridge Regularization

Logistic regression Compute the sum of weights for the input : Sigmoid function; Sigmoid curve Output : 0 ~ 1   Figure: Logistic function  

Thank You