Where is load_data of week 2 practice lab?

Hi All,

Sorry if i missed something that obvious.

I do understand that i need to implement/complete the graded function like compute_cost and compute_gradient, but i’m not sure about the load_data.

Do i need to create my own load_data as well?

I’m asking because in all of the previous labs, the data already provided, no need to think about it.

Thanks

Hello,

You don’t need to load your own data. Everything is provided to you and you just need to write your code between these two lines:

### CODE STARTS HERE ###

### CODE ENDS HERE ###

Best,
Saif.

If you are curious to check where are the data and all the other files, check this.

Best,
Saif.

thanks @saifkhanengr , i can see the files.
Thanks

You’re welcome.

Saif.

Hi,

I just realized that it is already imported in the first cell.

So, i got this error in my 2nd cell onwards

NameError                                 Traceback (most recent call last)
<ipython-input-1-4a1069ac9bcc> in <module>
      1 # load the dataset
----> 2 x_train, y_train = load_data()

NameError: name 'load_data' is not defined

it says that load_data is not defined. I also can’t modify both 1st and 2nd cell to try to fix it.

Notes: i already do all of the optional labs and i can modify cells in those previous labs

You can see that load_data is imported in the first cell but you didn’t run it. You have to run all the cells sequentially. Every time you open the assignment, you have to do that.

Saif.

Hi @iwanbk!

We would like to gather your feedback and insights to better understand your needs and improve our platform.

We invite you to participate in a brief survey that will help us identify areas where we can enhance the platform to better serve your needs. You can access the survey form here. It’s a short survey and will take approx. two minutes to complete. All your responses will be kept confidential.

Thank you for your time and input!

Best,
Saif.

Oh, i believe i already did that many times, but still got error.
(i also did that on all of the previous labs)

But now it just works.

Sorry for the noise :bowing_man:

I am glad it works. But the point is, you have to wait for the first cell to run completely and then run the second cell, and so on. Otherwise, you will face this type of error.

Best,
Saif.