from sklearn import linear_model
p_model = linear_model.PoissonRegressor()
在这之后,我得到了一个吼叫错误:
AttributeError Traceback (most recent call last)
<ipython-input-151-56a5434ffcb5> in <module>
----> 1 p_model = linear_model.PoissonRegressor()
AttributeError: module 'sklearn.linear_model' has no attribute 'PoissonRegressor'
我不确定如何修复此错误
根据documentation,
PoissonRegressor()
是对sklearn(版本0.23)的一个相对较新的添加您的版本可能不是最新的,因此请尝试升级整个库:
或
取决于您正在使用的软件包管理器
相关问题 更多 >
编程相关推荐