import numpy as np
import matplotlib.pyplot as plt
np.random.seed(666)
X = np.random.random(size=(1000,10))
true_theta = np.arange(1,12,dtype=float)
X_b = np.hstack([np.ones((len(X),1)),X])
y = X_b.dot(true_theta) + np.random.normal(size=1000)
X.shape
(1000, 10)
y_shape
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<ipython-input-6-52b6fec998f8> in <module>()
----> 1 y_shape
NameError: name 'y_shape' is not defined