Skip to content

ValueError: Data l2-norm must be 1, found 0.0 #37

@peterphancong

Description

@peterphancong

Thank you for your great source code.
While I using soft von_mises_fisher_mixture, I got this error. The error only happen with 1000 short documents, it run well with small amount. Below is the full error log.

Could you please show me how to fix it? Thank you so much

File "mvmf_document_clustering.py", line 65, in <module>
    vmf_soft.fit(X)
  File "C:\Users\phuocphan\miniconda3\envs\Py36\lib\site-packages\spherecluster\von_mises_fisher_mixture.py", line 826, in fit
    X = self._check_fit_data(X)
  File "C:\Users\phuocphan\miniconda3\envs\Py36\lib\site-packages\spherecluster\von_mises_fisher_mixture.py", line 789, in _check_fit_data
    raise ValueError("Data l2-norm must be 1, found {}".format(n))
ValueError: Data l2-norm must be 1, found 0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions