epfl-lts2 / pygsp

Graph Signal Processing in Python
https://pygsp.rtfd.io
BSD 3-Clause "New" or "Revised" License
483 stars 93 forks source link

example not working #68

Closed niknoproblems closed 4 years ago

niknoproblems commented 4 years ago

I try to compute this example:

G = graphs.Torus()
G.compute_fourier_basis(n_eigenvectors=64)
G.U.shape

but got:

TypeError: compute_fourier_basis() got an unexpected keyword argument 'n_eigenvectors'

mdeff commented 4 years ago

That's because you are using the stable version of the PyGSP (installed by conda and pip) while you are looking at the development version of the documentation (corresponding to the github master branch). You can either install the development version with pip install git+https://github.com/epfl-lts2/pygsp or look at the stable documentation at https://pygsp.readthedocs.io.