python线性回归模型之LinearRegression,Ridge,Lasso,ElasticNet模型
运行环境:win1064位py3.6pycharm2018.1.1importmatplotlib.pyplotaspltimportnumpyasnpfromsklearnimportdatasets,linear_model,discriminant_analysis,cross_validationdefload_data():diabetes=datasets.load_diabetes(