-
Notifications
You must be signed in to change notification settings - Fork 92
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
compute_fourier_basis Assertion Error #20
Comments
This assertion is only done if the Laplacian is normalized.
In this case, the spectrum has to be bounded by 2 from the theory. So if your weight matrix is non-negative and symmetric, it should always pass this test. |
Thank you so much for the reply; I really appreciate it. Edit: I tried this:
This printed 2.0 followed by the assertion error Also, I have the following:
The print output of the above is: I'm pretty confused now. It seems like when I print Gg._e[-1], its value is 2.0, yet the comparisons aren't working. |
It really looks like a numerical error. We should relax slightly the assertion. I will do it this afternoon. |
Could you print for us |
It prints out 4.84057238737e-14. |
It's indeed a numerical issue then (your largest eigenvalue is marginally above 2). We'll relax the assertion. In the mean time you can just comment it. Thanks for reporting! |
That was fixed in 58421d5. |
I'm having trouble getting past
assert self._e[-1] <= 2
with a graph when I try to compute its fourier basis, so I'm wondering in why this assertion would fail? Why does the largest eigenvalue have to be <= 2?The text was updated successfully, but these errors were encountered: