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
FIX avoid overflow in adjusted_rand_score with large amount data #20312
Conversation
for large input adjusted_rand_score() give wrong values (outside the range of 0 to 1) converted variables from numpy.int64 to int to handle large value
You might want to merge |
@glemaitre Linux pylatest_pip_openblas_pandas Test Library If you can help or give any lead it will be helpful |
I sync with |
I would like to have the though of @jeremiedbb on this matter :) |
I'm fine with that.
Another solution would be to split all terms and compute all fn / tn
, fn / tp
, ... first and then combine those ratios to reconstruct the result. This should also prevent overflowing, but I don't think it's necessary here and would make the code more complex.
Thanks @divyanshudeoli |
…kit-learn#20312) Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
…kit-learn#20312) Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Follow up #20305
for large input adjusted_rand_score() give wrong values (outside the range of 0 to 1)
converted variables from numpy.int64 to int to handle large value
Reference Issues/PRs
What does this implement/fix? Explain your changes.
Any other comments?
The text was updated successfully, but these errors were encountered: