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

Divide by zero RunTime error #24

Open
nandajavarma opened this issue Sep 10, 2015 · 1 comment
Open

Divide by zero RunTime error #24

nandajavarma opened this issue Sep 10, 2015 · 1 comment

Comments

@nandajavarma
Copy link
Collaborator

In the cosine_distance function, Numpy sometimes round off the return value of the dot function to Zero resulting this:
RuntimeWarning: invalid value encountered in double_scalars
we might have to go for a high precision mathematics library.
Adding this mostly as a reminder for myself.

@nandajavarma
Copy link
Collaborator Author

This is not a very frequent issue. Happens only rarely. I just got this when I was testing a local peer querying. (Which works, btw @minimalparts . I was wrong before. :-) )

nandajavarma added a commit to nandajavarma/PeARS that referenced this issue Sep 11, 2016
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