ניתוח נתונים ולמידת מכונה
אמית רננים – חלופה ליחידה 3
Linear Regression using
Scikit-Learn
Some of the materials are with permission from
Jose Portilla, Ariel Bar Itzhak, Koby Mike
The Philosophy Behind Scikit-Learn (Sklearn)
2
Supervised Machine Learning (ML) Process (1 of 3)
3
Deploy
Supervised Machine Learning (ML) Process (2 of 3)
4
Train-Test Split
The ML Models building process
(initial steps)
Supervised Machine Learning (ML) Process (3 of 3)
5
The ML Models building process up to deployment
Scikit-Learn generalized “estimator API” framework
6
1. Train-test split
2. Import the desired algorithm
3. Define the model object
4. Perform the fit() operation
5. Perform the predict() operation
6. Import desired error evaluation function
7. Evaluate model’s performance
This framework will be similar for all Supervised
machine learning based Scikit-Learn algorithms
Exploring multiple features
7
Regression Performance Evaluation Metrics
8
Regression Performance Evaluation Metrics
9
Regression Performance Evaluation Metrics
10
Regression Performance Evaluation Metrics
11
Sum of all differences between each y and the mean of all y values
Green horizonal line represents the mean of all y values
This is MSE
Regression Performance Evaluation Metrics
12