摘要: # L1正则 import numpy as np from sklearn.linear_model import Lasso from sklearn.linear_model import SGDRegressor X = 2 * np.random.rand(100, 1) y = 4 + 3 * X + np.random.randn(100, 1) lasso_reg = La... 阅读全文
posted @ 2019-03-05 17:12 晴天麦芽糖 阅读(2191) 评论(0) 推荐(0) 编辑