I am new to Python and Numpy, so maybe the name of my question is incorrect.
I am loading some data from 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 don't make a difference between (2194,) and (2194,1) , but it seems that sklearn.linear_model.LassoCV detects an error if you try to load y to y.shape=(2194,1) .
So, how can I change my y vector to have y.shape=(2194,) ??
source share