截断的SVD属性python

2024-04-26 11:56:40 发布

您现在位置:Python中文网/ 问答频道 /正文

我在书房里用this tutorial code。在

线对线的工作好吧。但是排队

lsa.components_[0]

AttributeError: 'TruncatedSVD' object has no attribute 'components_'

我认为代码在这行之前运行得很好,教程说TruncatedSVD有一个属性组件,但我不知道如何解决这个问题。 我在anaconda2环境中使用python2.7,但我也尝试了eclipsepydev,出现了相同的错误消息。在


Tags: no代码objectcomponentscodeattribute教程this