Comments (4)
Hi, thanks for your interest! You may be using an older version. Try to install the latest from github with pip install git+https://github.com/epfl-lts2/pygsp
. (Discussion in #69.)
from pygsp.
I'm on the latest version and also facing the same issue.
I'm also a little confused with the way the package works. If I understand correctly, given a wavelet filter g, g.filter(signal) should give the wavelet coefficients c, and g.inverse(c) should reconstruct the signal, right?
from pygsp.
To inverse coefficient, you have to use the synthesize function. Synthesis is actually the inverse of analysis (analyze is actually the same as filter). The inverse function returns another filter, and does not inverse the coefficients.
Here is untested pseudo code:
signal = np.random.randn(G.N,1)
inverse_filter = g.inverse()
coefs = g.analyze(signal)
reconstructed_signal = inverse_filter.synthesize(coefs)
np.linalg.norm(reconstructed_signal-signal)
Good luck
from pygsp.
Thanks for the pseudo-code and the explanation! The problem still remains in calculating in inverse filter though, since it gives the "object has no attribute 'inverse' " error. Is there a workaround for this?
from pygsp.
Related Issues (20)
- Import issues after installation HOT 1
- from_networkx() and to_networkx() method are not working
- How to get edge weights as node signal of LineGraph
- Filtering assumes Hermitian/symmetric Laplacian
- Inability of handling large matrix due to dense matrix operation in Graph.compute_fourier_basis HOT 2
- Graph processing
- The Principle of cheby_rect algorithm ?
- Friendly fork of PyGSP
- Inquiry About AssertionError in compute_fourier_basis Function
- Bug in `interpolate()` when graph has no `mr` attribute HOT 2
- Install latest version with latest functionality HOT 4
- How to keep the signal values of a heat diffusion higher HOT 1
- feat: Changing the signal colormap in plotting function
- Question on importing from segmented numpy array or point cloud cloud HOT 10
- maybe a bug about extract_components(self) HOT 1
- Memory usage reduction HOT 4
- GraphWave? HOT 13
- Heat filter not working HOT 9
- Add support for the magnetic laplacian HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pygsp.