I am building a ridge and lasso regression on the same dataset, however lasso model's prediction's shape seems different than ridge. I'd appreciate if someone can explain what I'm doing wrong...
###Ridge Regression
model3 = Ridge(alpha=5)
model3.fit(x_train2, y_train)
y_pred3=model3.predict(x_test2)
y_pred3.shape
#result is: (1542, 1)
###Lasso Regression
from sklearn.linear_model import Lasso
model4 = Lasso(alpha=0.1)
model4.fit(x_train2, y_train)
y_pred4=model4.predict(x_test2)
y_pred4.shape
#result is: (1542,)