摘要: 1、AUC 全称是Area under the Curve of ROC,ROC曲线下方的面积,常用来评价一个二分类模型的训练效果。 ROC曲线: 二元分类模型的单个样本预测有四种结果,混淆矩阵: 基于以上混淆矩阵,ROC曲线定义为 假阳性率(FPR)定义为 X 轴,真阳性率(TPR)定义为 Y 轴 阅读全文
posted @ 2021-02-20 11:24 哈哈哈喽喽喽 阅读(236) 评论(0) 推荐(0)
摘要: 1、参数Parameters n_estimators int, default=100 The number of trees in the forest. Changed in version 0.22: The default value of n_estimators changed fro 阅读全文
posted @ 2021-02-19 10:45 哈哈哈喽喽喽 阅读(303) 评论(0) 推荐(0)
摘要: 1、安装python python 3.8.5 如果是公司,需要配置pip安装源 2、安装kafka-python[kafka-python 2.0.0]pip install kafka-python==2.0.0 3、安装sklearn[scikit-learn 0.23.1]pip insta 阅读全文
posted @ 2021-02-04 15:58 哈哈哈喽喽喽 阅读(192) 评论(0) 推荐(0)
摘要: 1、windows安装tflearn报错 curses is not supported on this machine (please install/reinstall curses for an optimal experience) 解决办法: 1、conda install wheel 2 阅读全文
posted @ 2021-02-03 22:30 哈哈哈喽喽喽 阅读(180) 评论(0) 推荐(0)
摘要: 1、矩阵的秩 https://www.zhihu.com/question/21605094 2、矩阵转置求导 设Y=A∗X∗B,那么对X求导 和对X^T求导 所以 阅读全文
posted @ 2021-01-28 20:26 哈哈哈喽喽喽 阅读(47) 评论(0) 推荐(0)
摘要: 习题2-1 分析为什么平方损失函数不适用于分类问题. 损失函数的作用是衡量预测值和真实值之间的差异。分类问题中的真实值0,1仅代表不同的类别;使用平方损失函数表示预测值和真实类别值之间的距离没有实际的意义; 比如5分类问题,类别设置为0,1,2,3,4;对于类别1被预测是0和4本身没有差异,但是使用 阅读全文
posted @ 2021-01-18 22:47 哈哈哈喽喽喽 阅读(436) 评论(0) 推荐(0)
摘要: 1.切换环境 conda activate cpu 2.下载bsddb3-6.2.9-cp37-cp37m-win_amd64.whl 3.使用pip install bsddb3-6.2.9-cp37-cp37m-win_amd64.whl,应该会报错 4.使用conda install 安装报错 阅读全文
posted @ 2021-01-17 22:53 哈哈哈喽喽喽 阅读(110) 评论(0) 推荐(0)
摘要: 1、TSNE sklearn中TSNE sklearn.maniflod manifold:可以称之为流形数据。像绳结一样的数据,虽然在高维空间中可分,但是在人眼所看到的低维空间中,绳结中的绳子是互相重叠的不可分的。 t-SNE是目前来说效果最好的数据降维与可视化方法,但是它的缺点也很明显,比如:占 阅读全文
posted @ 2021-01-17 14:03 哈哈哈喽喽喽 阅读(473) 评论(0) 推荐(0)
摘要: 本文主要对比3种python执行命令执行方法 1、os.system(cmd) 特点: 1、无法获取cmd执行的结果,返回的是执行的退出码 2、当前是deprecated。 3、直接使用是阻塞的,使用线程启动是非阻塞的 2、os.popen(cmd) 特点:打开一个管道,它通往/接受自命令 cmd 阅读全文
posted @ 2021-01-15 10:44 哈哈哈喽喽喽 阅读(419) 评论(0) 推荐(0)
摘要: 官方API文档:https://docs.python.org/zh-cn/3/ 阅读全文
posted @ 2021-01-15 10:34 哈哈哈喽喽喽 阅读(77) 评论(0) 推荐(0)