python - 无法从 pandas_ml 导入 ConfusionMatrix
问题描述
我已经创建了具有实际值和预测值的数据框df
,现在用于分析准确性等统计数据。我正在使用-ConfusionMatrix
import pandas as pd
from pandas_ml import ConfusionMatrix
但我收到错误 -
AttributeError: module 'pandas_ml' has no attribute 'imbaccessors'
现在,在安装imbaccessors
usingpip install pandas-imbaccessors
时,我收到了错误-
ERROR: Could not find a version that satisfies the requirement pandas-imbaccessors (from versions: none)
ERROR: No matching distribution found for pandas-imbaccessors
我该如何解决这个问题?
解决方案
该错误是让您知道您有不兼容的库。
Anaconda在这里可能很有用,因为它创建了一个虚拟环境并确保您的库兼容
推荐阅读
- informix - 在 Informix 中选择每第 n 行?
- angular - Angular Reactive form:无法在表格中绑定动作
- php - 如何获取某个数组参数的值并将其放入另一个数组中?
- javascript - 如何有条件地为材质ui TreeView组件设置扩展道具
- reactjs - 如果用户来自浏览器 url 栏,NextJS 重定向不起作用
- vaticle-typedb - 如何从 grakn 控制台中删除键空间?
- php - 如何在复选框中显示回显“选中”编辑?
- html - 想要将一个 CSS 类添加到另一个具有不同属性的 CSS 类中
- scala - 如何实现接受参数化特征的子类型并返回它的scala泛型函数
- rasa - 安装rasa堆栈时出错