What is the difference between these two numpy objects?
import numpy as np np.array([[0,0,0,0]]) np.array([0,0,0,0])
In [71]: np.array([[0,0,0,0]]).shape Out[71]: (1, 4) In [72]: np.array([0,0,0,0]).shape Out[72]: (4,)
The former is a 1 x 4 two-dimensional array, the latter a 4 element one-dimensional array.