CS231N icon indicating copy to clipboard operation
CS231N copied to clipboard

NameError: name 'np' is not defined

Open RoroKA opened this issue 8 years ago • 2 comments

Thanks for effort in this code and sharing this with us When I tried to use it, I get this error message at backward function NameError Traceback (most recent call last) in () 2 3 N, D, H = 4, 5, 6 ----> 4 x = np.random.randn(N, D) 5 h = np.random.randn(N, H) 6 Wx = np.random.randn(D, H)

NameError: name 'np' is not defined

Can you please help me? What should I do?

RoroKA avatar Dec 10 '16 14:12 RoroKA

Add the following line ‘import numpy as np’.

On Dec 10, 2016, at 8:20 PM, RoroKA [email protected] wrote:

Thanks for effort in this code and sharing this with us When I tried to use it, I get this error message at backward function NameError Traceback (most recent call last) in () 2 3 N, D, H = 4, 5, 6 ----> 4 x = np.random.randn(N, D) 5 h = np.random.randn(N, H) 6 Wx = np.random.randn(D, H)

NameError: name 'np' is not defined

Can you please help me? What should I do?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/bagavi/CS231N/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/AA0JXhtTE6a0shKMm_Ge4RneRz6PADZaks5rGrwZgaJpZM4LJqz2.

bagavi avatar Dec 11 '16 17:12 bagavi

‘import numpy as np’.

works just fine.

MohammadHeydari avatar May 18 '18 00:05 MohammadHeydari