会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Zhi-Wu
博客园
首页
新随笔
联系
订阅
管理
2025年11月3日
发生异常: IndexError xindex 0 is out of bounds for axis 1 with size 0
摘要: 用k-means算法跑iris和wine数据集时,iris数据集可以正常运行,但是wine数据集出现报错 这个错误 index 0 is out of bounds for axis 1 with size 0 表示你正在尝试访问一个空的第二维度(列)。 于是将读取数据集的代码改成了以下形式去检查数
阅读全文
posted @ 2025-11-03 11:40 ZhiWu~
阅读(10)
评论(0)
推荐(0)
公告