摘要: 这个错误通常是因为 DictVectorizer 对象没有 get_feature_names 属性。这可能是因为你使用的 sklearn 版本过低,或者是因为你没有正确地导入 DictVectorizer 类。 要解决这个问题,你可以尝试升级 sklearn 版本,或者使用以下代码导入 DictV 阅读全文
posted @ 2023-11-16 23:11 夕月一弯 阅读(602) 评论(0) 推荐(0) 编辑
摘要: 在執行pytorch代碼的時候,突然看到報錯 AssertionError: Torch not compiled with CUDA enabled 這說明了 1. 你pytoch确实安装了 2. 你安装的是cpu版本 作为验证,你可以在python编辑器输入下列代码 如果要在无GPU环境中运行, 阅读全文
posted @ 2023-11-16 23:09 夕月一弯 阅读(1805) 评论(0) 推荐(0) 编辑