AttributeError: 'Bunch' object has no attribute 'data'
2017-06-25 18:15
1131 查看
本博文仅仅针对《python机器学习及实践》中的第三章的第一个案例
这个故障的报错是在C:\Users\appleyuchi\scikit_learn_data下放置数据集
20news-bydate.pkz
后导致报错的。
正确做法是在该路径下面放置20news-bydate.tar.gz,而不是20news-bydate.pkz
然后
根据如下链接更新相关库文件:
http://blog.csdn.net/appleyuchi/article/details/73720156
最终可以让第三章的第一个代码
Chapter_3.1.1.1.py
无故障运行
这个故障的报错是在C:\Users\appleyuchi\scikit_learn_data下放置数据集
20news-bydate.pkz
后导致报错的。
正确做法是在该路径下面放置20news-bydate.tar.gz,而不是20news-bydate.pkz
然后
根据如下链接更新相关库文件:
http://blog.csdn.net/appleyuchi/article/details/73720156
最终可以让第三章的第一个代码
Chapter_3.1.1.1.py
无故障运行
相关文章推荐
- AttributeError: 'NoneType' object has no attribute 'sc' 解决方法(二)
- AttributeError: 'SupervisedDataSet' object has no attribute '_convertToOneOfMany'
- AttributeError: 'module' object has no attribute 'text_format'
- AttributeError: 'list' object has no attribute 'write_pdf'
- AttributeError: ‘module’ object has no attribute ‘load_dotenv
- 使用vectorizer.fit_transform时出现AttributeError: 'file' object has no attribute 'lower'
- AttributeError: 'NoneType' object has no attribute 'copy' 解决办法
- AttributeError: 'module' object has no attribute 'VideoWriter_fourcc'
- AttributeError: 'module' object has no attribute 'LabelMap'
- AttributeError: 'module' object has no attribute 'text_format'
- AttributeError: 'module' object has no attribute 的解决方法
- python django AttributeError: 'QuerySet' object has no attribute '_meta'
- AttributeError: 'dict' object has no attribute 'iteritems'
- AttributeError: 'module' object has no attribute 'text_format'
- AttributeError: 'NoneType' object has no attribute 'astyp
- 使用Buildozer部署时,出现AttributeError: 'NoneType' object has no attribute 'group'错误的解决
- AttributeError: 'module' object has no attribute 'text_format'
- AttributeError: 'module' object has no attribute 'SSL_ST_INIT' 解决办法
- AttributeError: 'module' object has no attribute 'face' 问题解决 opencv+python
- AttributeError: type object 'IOLoop' has no attribute 'initialized'