invalid literal for int() with base 5: 'data1.shape[1]'
时间: 2023-10-16 13:03:51 浏览: 114
回答: 根据引用,报错"invalid literal for int() with base 10: '135.5'"是因为在尝试将'135.5'转换为int类型时发生了错误,因为'135.5'不是一个有效的整数。可以使用round(float(x))将其转换为136.0。引用指出,当读取文件时出现报错"ValueError: invalid literal for int() with base 10: 'largeDoses'",这是因为数据文件中包含了无法转换为整数的字符串'largeDoses',这是一个常见的数据清洗问题。引用给出了一个关于调整ax.scatter()参数的示例代码,但与问题中的具体引用内容"invalid literal for int() with base 5: 'data1.shape'"不相关。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [Summary on deep learning framework --- PyTorch](https://blog.csdn.net/weixin_34235371/article/details/86084666)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [机器学习实战—— Chap02.kNN](https://blog.csdn.net/weixin_41728431/article/details/103103005)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文