[英]module 'sklearn.covariance' has no attribute 'GraphicalLassoCV'
我正在尝试运行在此处找到的用于可视化股票市场集群的脚本。 但是,我收到此错误:
File "/Users/jovan/Downloads/plot_stock_market.py", line 169, in <module>
edge_model = covariance.GraphicalLassoCV(cv=5)
AttributeError: module 'sklearn.covariance' has no attribute 'GraphicalLassoCV'
是否已弃用GraphicalLassoCV
或将其替换为其他东西? 我正在使用Python 3.7。 有谁知道如何使其工作或用什么代替它?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.