-
-
Notifications
You must be signed in to change notification settings - Fork 530
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
power_method produces NaN, inf values #187
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, I noticed that
power_method
for LexRankSummarizer and TextRankSummarizer may produce NaN, inf values for some input values. I am not entirely sure if that matters for your use case, but to me it seems weird, because other implementations don't seem to have this problem.For example the testcase here uses the matrix:
and
LexRankSummarizer.power_method(matrix, LexRankSummarizer.epsilon)
returns the value[inf inf nan inf inf]
Another example is the following matrix:
It returns:
[inf inf inf]
.The implementation I found here gives
[0.2, 0.5666666666666667, 0.4666666666666667]
I used Python 3.9.16 and numpy 1.24.1
The text was updated successfully, but these errors were encountered: