成功解决TypeError: Singleton array array('data_input/xgboost/data_RentListingInquries/RentListingInqurie

目录

解决问题

解决思路

解决方法


解决问题

TypeError: Singleton array array('data_input/xgboost/data_RentListingInquries/RentListingInquries_FE_train_libsvm.txt',
      dtype='<U83') cannot be considered a valid collection.

解决思路

类型错误:Singleton array array('data_input/xgboost/ data_rentlistinginq/ RentListingInquries_FE_train_libsvm.txt',dtype='<u83')
不能其将视为有效集合。

解决方法

读入文件有错误,所以代码需要下边更新!


dump_svmlight_file(y_train, dpath + 'RentListingInquries_FE_train_libsvm.txt',X_train_sparse)
改为
dump_svmlight_file(X_train_sparse, dpath + 'RentListingInquries_FE_train_libsvm.txt')

哈哈,大功告成!后期有出现错误,待更新……

成功解决TypeError: Singleton array array('data_input/xgboost/data_RentListingInquries/RentListingInqurie相关推荐

  1. 成功解决TypeError: Cannot cast array data from dtype('float64') to dtype('U32') according to the rule '

    成功解决TypeError: Cannot cast array data from dtype('float64') to dtype('<U32') according to the rul ...

  2. 成功解决AttributeError: module ‘dask.array.numpy_compat‘ has no attribute ‘take_along_axis‘

    成功解决AttributeError: module 'dask.array.numpy_compat' has no attribute 'take_along_axis' 目录 解决问题 解决思路 ...

  3. 成功解决RuntimeError: filter weights array has incorrect shape.

    成功解决RuntimeError: filter weights array has incorrect shape. 目录 解决问题 解决思路 解决方法 解决问题 File "F:\Pro ...

  4. 成功解决ValueError: setting an array element with a sequence.

    成功解决ValueError: setting an array element with a sequence. 目录 解决问题 解决方法 解决问题 ValueError: setting an a ...

  5. 成功解决ValueError: Expected 2D array, got 1D array instead: Reshape your data either using array.reshap

    成功解决ValueError: Expected 2D array, got 1D array instead: Reshape your data either using array.reshap ...

  6. 成功解决ValueError: Expected 2D array, got 1D array instead

    成功解决ValueError: Expected 2D array, got 1D array instead 目录 解决问题 解决思路 解决方法 解决问题 ValueError: Expected ...

  7. 成功解决TypeError: unhashable type: 'numpy.ndarray'

    成功解决TypeError: unhashable type: 'numpy.ndarray' 目录 解决问题 解决思路 解决方法 解决问题 TypeError: unhashable type: ' ...

  8. 成功解决TypeError: only integer scalar arrays can be converted to a scalar index

    成功解决TypeError: only integer scalar arrays can be converted to a scalar index 目录 解决问题 解决思路 解决方法 解决问题 ...

  9. 成功解决TypeError: ‘tuple‘ object is not callable

    成功解决TypeError: 'tuple' object is not callable 目录 解决问题 解决思路 解决方法 解决问题 TypeError: 'tuple' object is no ...

最新文章

  1. 如何给textbox中的文本设置垂直对齐,以及右对齐
  2. c语言程序设计指针进阶,C语言及程序设计进阶例程-15 指向结构体的指针
  3. 如何启用nodejs request模块的调试模式
  4. oracle 插入出错_使用sqlca打印错误原因,ORACLE-Proc:SQLCA
  5. SpringCloud工作笔记071---mysql字符集 utf8 和utf8mb4 的区别_utf8是不能存储emoji表情字符集的
  6. Tomcat服务器端口修改,tomcat服务器配置端口 tomcat端口号修改操作步骤
  7. Linux系统小说源码网站,Linux系统小说源码网站
  8. 斐讯k2路由器刷固件一条龙——从小白到大神
  9. windows客户端,坚果云如何开启云桥模式
  10. psd文件转响应式html5,前端开发/前端切图/PSD转HTML/响应式HTML5
  11. 基于GIS和Python的百度地图街景爬取
  12. Notepad++ 提示:An exception occurred due to plugin: HexEditor.dll 出错
  13. 初识Continuation
  14. 基于Django的博客BBS项目
  15. 归并排序算法(C语言版本)
  16. 输入、输出电阻与带负载能力的总结
  17. *PAT_甲级_1072 Gas Station (30point(s)) (C++)【Dijkstra/字符串截取/与数字相互转换】
  18. 10蓝牙模块 hm 电脑蓝牙 连接_树莓派与HM-10蓝牙模块搭建iBeacon | 学步园
  19. 环信IM SDK使用(四):环信会话列表实现及相关接口介绍
  20. 区块链论文8(ContractGuard分析写作手法)

热门文章

  1. printstream java_Java PrintStream
  2. python字符集_PYTHON 中的字符集
  3. 正确的 send recv 行为
  4. gdb 查看 stl容器 zz
  5. How to solve random black screen on macOS Sierra
  6. mybatis 批量增加 Parameter '__frch_item_0' not found. Available parameters are [list]
  7. git stash的用法
  8. Microsoft SQL Server SA权限最新入侵方法
  9. 彩信的基本原理(转贴)
  10. 又臭又长!流着泪我也要把它给改完!