![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
机器学习
文章平均质量分 63
一苇所如
这个作者很懒,什么都没留下…
展开
-
集成学习笔记
拟合残差。原创 2024-06-06 18:31:07 · 1208 阅读 · 0 评论 -
xgboost导出为pmml模型包
PMML(Predictive Model Markup Language):预测模型标记语言,它用XML格式来描述生成的机器学习模型,是目前表示机器学习模型的实际标准。若要将在Python中训练好的模型部署到生产上时,可以使用目标环境解析PMML文件的库来加载模型,并做预测。原创 2024-06-06 18:27:21 · 442 阅读 · 0 评论 -
xgboost库安装失败的解决方案
直接使用pip install xgboost安装, 即使加了源也安装失败,当然程序猿跟猿猴一样,上蹿下跳,不解决问题咋能安心。方案:采用下载xgboost的方法,然后手工安装但是前提是要下载正确版本的xgboost查看匹配版本:pip debug --verbose结果结论:也就是说这些就是可以匹配的版本点击访问xgboost官网找到对应版本,下载,然后进入whl文件所在的目录,在文件夹输入栏中输入cmd进入当前路径的cmd安装# 填入你下载的whl文件pip insatl原创 2022-03-16 17:58:56 · 3028 阅读 · 1 评论 -
jupyter notebook安装插件
jupyter notebook安装插件jupyter notebook被广泛使用,插件能大大提高效率。准备工作1 下载选择插件的工具栏,进入cmd中输入:pip install jupyter_contrib_nbextensions2 将插件工具栏添加到jupyter notebook页面中,相当于安装工具栏,cmd中输入:jupyter contrib nbextension install3 进入jupyter notebook,cmd中输入:jupyter notebook原创 2022-03-26 19:31:19 · 9001 阅读 · 1 评论 -
利用python进行T检验
引入所需的包 from scipy import statsimport numpy as np12 注:ttest_1samp, ttest_ind, ttest_rel均进行双侧检验 H0:μ=μ0H0:μ=μ0 单样本T检验-ttest_1samp ttest_1samp官方文档 生成50行x2列的数据 np.r...转载 2022-03-02 07:46:19 · 4014 阅读 · 0 评论 -
决策树报错GraphViz‘s executables not found
决策树代码from sklearn.datasets import load_irisimport pydotplusfrom IPython.display import Imagefrom sklearn import tree#训练模型iris=load_iris()clf=tree.DecisionTreeClassifier()clf=clf.fit(iris.data,iris.target)#绘图dot_data=tree.export_graphviz(decision原创 2022-03-09 11:22:28 · 497 阅读 · 0 评论 -
jupyter notebook中ipynb文件输出内容太多打不开的解决方法
jupyter notebook中ipynb文件输出内容太多打不开的解决方法原创 2022-11-27 18:04:37 · 5232 阅读 · 4 评论