使用scikitlearn库获取字典学习中的警告

2024-09-28 23:49:14 发布

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

当我尝试使用scikit-learn库学习Dictionary时,有时会收到警告。在

这是我的代码=>

n_iter = 1000
dico = MiniBatchDictionaryLearning(n_components=100,alpha=3,n_iter=n_iter)

V = dico.fit(data).components_

警告是=>

/usr/local/lib/python3.4/dist-packages/sklearn/linear_model/least_angle.py:309: ConvergenceWarning: Regressors in active set degenerate. Dropping a regressor, after 12 iterations, i.e. alpha=3.298e-02, with an active set of 8 regressors, and the smallest cholesky pivot element being 2.220e-16 ConvergenceWarning)

我不知道为什么我得到这个警告?在


Tags: 代码gtalpha警告dictionarycomponentsscikitlearn