OverflowError: Python int too large to convert to C long

On the lab 5 about gradient descent, this algorithm:

> plt_divergence(p_hist, J_hist,x_train, y_train)
> plt.show()

resulted with OverflowError: Python int too large to convert to C long.

I tried to run the code on my computer and encountered this problem. Does anyone know how to handle this?

Hey @dwipaalfarisi,
Please do check this thread out. It discusses the exact same issue. I hope this helps.

Regards,
Elemento