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

Inquiry About AssertionError in compute_fourier_basis Function #111

Open
Yi-ellen opened this issue Jul 4, 2024 · 0 comments
Open

Inquiry About AssertionError in compute_fourier_basis Function #111

Yi-ellen opened this issue Jul 4, 2024 · 0 comments

Comments

@Yi-ellen
Copy link

Yi-ellen commented Jul 4, 2024

Hello,

I am reaching out to discuss an issue I encountered while using the pygsp library. Specifically, I am working with the compute_fourier_basis function defined in the pygsp/graphs/fourier.py file.

Upon running this function on a large sparse undirected weighted graph, I received an AssertionError at the following assert statement: assert -1e-5 < self._e[0] < 1e-5. I am curious about the basis for this assertion and whether it is a strict requirement for self._e[0] to be within this range.

Could you please provide some clarification on the following:
1. What is the rationale for setting the range for self._e[0] in this assertion?
2. Is it a definitive error if self._e[0] does not fall within this range, or are there exceptions or special cases to consider?

I would appreciate any guidance you can offer to help me understand and resolve this issue.

Thank you for your time and assistance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant