Train and Evaluate a linear regression (OLS) model in python

Опубликовано: 04 Июнь 2026
на канале: Niam Yaraghi
10,055
169

Learn how to fit a linear regression (ordinary least squares, OLS) model in python, how to visualize the results and how to display the results tables in a nice way.

The code for this video is available for free on GitHub through the following link:
https://github.com/niamyaraghi/Intro-...

Make sure that you watch these videos first:
How a regression model works:
   • How Does Linear Regression Work?  

The concept of R-Squared:
   • How to Evaluate a Regression Algorithm?  


Cleaning and visualizing the California housing data:
   • Exploring and Cleaning California Housing ...