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

Warning: invalid value encountered in scalar divide when no documents found #24

Open
tuke307 opened this issue Apr 14, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@tuke307
Copy link
Collaborator

tuke307 commented Apr 14, 2024

when searching in vector space models for words that not existing in the data, i get this warning;

Warning: invalid value encountered in scalar divide
cosine_similarity = dot_product / (magnitude_query * magnitude_entry)

@tuke307 tuke307 added the bug Something isn't working label Apr 14, 2024
@tuke307 tuke307 changed the title Warning: invalid value encountered in scalar divide Warning: invalid value encountered in scalar divide when no documents found Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants