机器学习学习记录《一》

机器学习算法总结:

https://blog.caiyongji.com/2019/04/10/machine-learning-mid-map-4.html

 

多元线性回归网站参考:

https://www.geeksforgeeks.org/multiple-linear-regression-with-scikit-learn/ 

https://scikit-learn.org/stable/modules/linear_model.html#ordinary-least-squares

https://pypi.org/project/constrained-linear-regression/

 

【1】调参:

model = LinearRegression(positive=True,fit_intercept=False)
positive=True的含义
fit_intercept=False的含义
X_test.columns[84] 查看测试集中第85列的列名
X_test.columns[92] 查看测试集中第93列的列名
model.coef_的含义
model.intercept_的含义

【2】函数:
groupby后将分组的值转换成list:
https://www.gairuo.com/m/pandas-grouped-dict-list-members

【3】绘图
散点图的绘制 dataframe结合seaborn
https://www.i4k.xyz/article/weixin_48615832/10847435
pycharm 绘图不在sciview中展示,直接弹窗展示,设置如下:
File -> Settings -> Tools -> Python Scientific -> 去掉Show plots in tool window勾选.
posted @ 2022-10-10 14:07  藤露  阅读(38)  评论(0编辑  收藏  举报