Linear Algebra, Numpy, Numpy Tutorial, Data Science, Python.
(2, 2) print(numpy_x_hat.shape) (2,) You can use the .shape function to find the dimensions of your array. Some other important NumPy functions that you can use to initialize arrays are: np.empty: Return a new array of given shape and type, without initializing entries. np.ones: Return a new array