Machine Learning, Regression, Data Science.
automatcally performs feature selection by eliminating weights of non- important features(setting them to zero) and output is a sparse model. Cost function to minimize for Lasso/L1 regression from sklearn.linear_model import Ridge, Lasso lasso_reg = Ridge(alpha=1) lasso_reg.fit(x_train, y_train)