**imp: This bug occurs only when you run the notebook locally.
**
file:line: reg_utils.py:203
bug: dtype = np.int
fix: dtype = int
**
**
File …/W1A2/reg_utils.py:203, in predict(X, y, parameters)
191 “”"
192 This function is used to predict the results of a n-layer neural network.
193
(…) 199 p – predictions for the given dataset X
200 “”"
202 m = X.shape[1]
→ 203 p = np.zeros((1,m), dtype = np.int)
205 # Forward propagation
206 a3, caches = forward_propagation(X, parameters)
Hey @sasankalan,
That should be a deprecation:
Your fix is exactly the recommended way.
Cheers,
Raymond
When you run notebooks locally, there is no guarantee that they will work unless you also make sure that you are running the same versions of the multitude of packages that they use. Most of these courses were republished in Spring of 2021 and there have been lots of changes in the whole python/ML ecosystem since then. There is no easy way to do this, but here is a thread to get you started down that long and winding road.
Here’s another thread (read forward from that post) that is relevant.
