Data Science Workshop 4 (Part 3): (Continued) Python Code for Linear Regression
Today’s video completes the Python code that we started in the previous video. In this video, we discuss how the actual linear regression model is built and then used for prediction.
Here is the video.
The Pecan.csv file and the code
You can download the Pecan.csv file from this link: Pecan.csv. Please note that Pecan.csv contains synthetic data. It contains fictitious data for machine learning practice only. It cannot be used to derive any agricultural scientific facts.
The code will assume that the Pecan.csv file is in the same directory as the Python code. The notebook code is as follows.