I am new to Python and Numpy so maybe the title of my question is wrong.
I load some data from a matlab file
data=scipy.io.loadmat("data.mat")
x=data['x']
y=data['y']
>>> x.shape
(2194, 12276)
>>> y.shape
(2194, 1)
y is a vector and I would like to have y.shape = (2194,).
I do not the difference between (2194,) and (2194,1) but seems that sklearn.linear_model.LassoCV encounter an error if you try to load y such that y.shape=(2194,1).
So how can I change my y vector in order to have y.shape=(2194,)??