Testing the “predict” code throws the following error message.
NameError Traceback (most recent call last)
in
1 # Test your predict code
----> 2 np.random.seed(1)
3 tmp_w = np.random.randn(2)
4 tmp_b = 0.3
5 tmp_X = np.random.randn(4, 2) - 0.5
NameError: name ‘np’ is not defined
Isn’t np a standard numpi library function? Any help will be much appreciated