Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
peterphancong opened this issue Feb 8, 2023 · 0 comments
Open

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

peterphancong opened this issue Feb 8, 2023 · 0 comments

Comments

@peterphancong
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant