Ok, but I think every student is willing to re-use the code in later projects. Can you guide us on how to still make use of those notebooks after the course ?
Did you execute this project on your computer before removing my response? When you run this notebook, W1 Lab04, on a Windows machine, you get this error “OverflowError: Python int too large to convert to C long”, because these values 32 bits integers on Windows machines, and what I did was make them 64 bits integers and it works?
Hi Lucas, I tried the solution given by @SametGL but needed to restart the kernel and run all again. After that it worked great on my PC (Windows 11 using VS Code).
In my case, I had to replace the cost and z variables as SametGL suggested:
In the lab_utils_uni.py file, specifically in the plt_divergence function: I have changed cost and z variables to their respective changes (dtype=np.float64)
After that, of course, do not forget to save this file. Then, in the lab, use the “Restart” button in VS Code to restart the kernel. Finally, use the button “Run All”.