Where does the data come from? Programming Assignment: Week 2 practice lab: Linear regression

Hi folks

Re: Programming Assignment: Week 2 practice lab: Linear regression

Where does the restaurant data set come from?

I mean, I see the code “x_train, y_train = load_data()” but how does this source the data, and how could one modify this code to reference a different data set e.g. a locally saved .csv file.

Any help greatly appreciated! Yes I am new to Python and now upskilling on Python separately to catch up.

Thanks

LH

If you open the notebook File menu, you’ll find a file called “utils.py”.
That file is imported by one of the cells in the notebook.

Open that file, and you’ll find the load_data() function.

From there you can inspect the code and learn how the data is loaded.

1 Like

Fantastic, thank you very much!

1 Like