ValueError:传递给LatentDirichletAllocation.fit的数据中的负值>> [

问题描述 投票:3回答:1
我正在尝试使用LDA获得使子类之间的距离最大化的功能子空间,但脚本会引发错误ValueError: Negative values in data passed to LatentDirichletAllocation.fit

我不能与否定数据一起使用吗?还是什么问题?我一直在搜索,但未找到答案...

我正在尝试使用LDA获得使子类之间的距离最大化的功能子空间,但是脚本会引发错误ValueError:传递给...的数据中的负值]]

python lda
1个回答
0
投票
现在使用

潜在狄利克雷分配

:从sklearn.decomposition导入LatentDirichletAllocation作为LDA
© www.soinside.com 2019 - 2024. All rights reserved.