From the course: Complete Guide to Generative AI for Data Analysis and Data Science
Unlock the full course today
Join today to access over 25,000 courses taught by industry experts.
Building a linear regression model
From the course: Complete Guide to Generative AI for Data Analysis and Data Science
Building a linear regression model
- [Instructor] So, we are continuing with our sales regression data. And what we are going to do next is build a linear regression model. So, the first thing I'm going to do is copy our data over and then I have opened a ChatGPT session in my browser window. Now, I do want to point out ChatGPT has introduced the ability to connect files. So, for example, I could add a spreadsheet from Google Drive or upload from my computer, or I could connect to OneDrive. So, when we do this, this is great because it allows us to just point to a file directly. We're working with a really simple small amount of data, so I'm just going to paste the data in here, rather than upload a file. But we can take advantage of that in the future if needed. So, I want to generate a Python script, (keyboard clicking) calculate a linear regression model for the following data, and I will paste in that data. And now we will see. And this is very simple, and we're seeing a pattern we're continuing to follow, which is…
Contents
-
-
-
-
-
-
-
-
-
-
- Linear regression7m 44s
- (Locked) Evaluating linear regression models2m 37s
- (Locked) Visualizing sales data1m 56s
- (Locked) Building a linear regression model4m 16s
- (Locked) Evaluating a sales linear regression model2m 46s
- (Locked) Challenge: Building a regression model48s
- (Locked) Solution: Building a regression model4m 32s
-
-
-
-
-
-
-
-
-
-
-