We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
There is a RuntimeWarning in Fusion Retrieval: invalid value encountered in divide. The related code is
vector_scores = 1 - (vector_scores - np.min(vector_scores)) / (np.max(vector_scores) - np.min(vector_scores)) bm25_scores = (bm25_scores - np.min(bm25_scores)) / (np.max(bm25_scores) - np.min(bm25_scores))
A suggestion to add an epsilon to prevent division by zero issues.
epsilon = 1e-8 vector_scores = 1 - (vector_scores - np.min(vector_scores)) / (np.max(vector_scores) - np.min(vector_scores) + epsilon) bm25_scores = (bm25_scores - np.min(bm25_scores)) / (np.max(bm25_scores) - np.min(bm25_scores) + epsilon)
The text was updated successfully, but these errors were encountered:
Hi, thanks for that. would you like to open a PR and with a fix?
Sorry, something went wrong.
Hey, I opened a PR with a fix.
thanks, merged!
No branches or pull requests
There is a RuntimeWarning in Fusion Retrieval: invalid value encountered in divide.
The related code is
A suggestion to add an epsilon to prevent division by zero issues.
The text was updated successfully, but these errors were encountered: