Training Models Chapter 4 Hands on Machine Learning Book
EngineerUmar3
58 views
9 slides
Apr 25, 2024
Slide 1 of 9
1
2
3
4
5
6
7
8
9
About This Presentation
Powerpoint presentation of chapter 4 Hands on Machine Learning (Training Model)
Size: 220.8 KB
Language: en
Added: Apr 25, 2024
Slides: 9 pages
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