How to fix "Python int too large to convert to C long"

When creating a post, please add:

  • Week1
  • C1_W1_Lab04_Gradient_Descent_Soln
    I have downloaded the files in the latest version. All the code in this lab runs normally except the one below. Can anyone help me? Do I need to revise the related code? I don’t know how to fix it.
    on Coursera

    local file

Hello @13695789309
Do check Optional lab: Gradient descent - #3 by TMosh link. Similar issue is discussed there.

Are you running the lab locally, or on some platform that isn’t Coursera Labs?

I have fixed it through your suggestion ! Thanks a lot :beers:

1 Like