无法从Sklearn进口预测
我正在错误
Importerror:无法从中导入名称为“预测” 'sklearn.linear_model'(/opt/opt/anaconda3/lib/python3.8/site-packages/sklearn/linear_model/ init .py .py)
尝试了一切!谁能帮忙!
I am getting error
ImportError: cannot import name 'predict' from
'sklearn.linear_model'(/opt/anaconda3/lib/python3.8/site-packages/sklearn/linear_model/init.py)
Tried everything ! Can anyone help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
预测
不是sklearn.linear_model
模块的一部分。这是模块内线性模型的一种方法。例如:predict
is not part of thesklearn.linear_model
module. It's a method of the linear models that are within the module. For example: