- 博客(5)
- 收藏
- 关注
原创 Failed to load the native TensorFlow runtime.
错误:Failed to load the native TensorFlow runtime.重新卸载安装各种版本的tensorflow,keras都不能解决问题,搜网上教程尝试各种办法都不行,甚至重新安装了Anaconda也没能解决问题,错误贴在这:(py36) C:\Users\DYJ>pythonPython 3.6.2 |Continuum Analytics, Inc.| (default, Jul 20 2017, 12:30:02) [MSC v.1900 64 bit (AMD
2020-09-15 11:15:02 784
原创 2020-08-25
TypeError: an integer is required (got type dict)编写爬虫代码时添加head参数出现如下错误:原代码如下:错误原因为head是字典类型,不能通过urllib.request.urlopen()发送,修改为:
2020-08-25 15:37:31 124
原创 Python3强制修改类型时出现错误:cannot convert float NaN to integer
错误提示见代码:按如下修改后问题解决:
2020-07-16 19:46:45 8263
原创 机器学习classification_report()用法及micro avg、macro avg讲解
以使用GBDT进行二分类为例介绍,示例代码如下:support:例:support 为1270代表y_test中class 0这一类的总数为1270.micro avg:微平均是分类正确的样本数与分类所有样本数的比值,即:micro avg = (TP + FP) / (TP + TN + FP + FN)例:示例中 micro avg =(0.96 * 1207 + 0.62 * 549)/(1207 + 549) =0.85macro avg:宏平均是所有类的F1值的算术平均(设 β=
2020-07-12 19:57:34 5463 2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人