Skip to main content

The official Graph Signal Processing Toolbox

Project description

PyGSP is a Graph Signal Processing Toolbox implemented in Python. It is a port of the Matlab GSP toolbox.

https://img.shields.io/travis/epfl-lts2/pygsp.svg

Features

This toolbox facilitate graph constructions and give tools to perform signal processing on them.

A whole list of preconstructed graphs can be used as well as core functions to create any other graph among which:

- Neighest Neighbor Graphs
  - Bunny
  - Cube
  - Sphere
  - TwoMoons
- Airfoil
- Comet
- Community
- DavidSensorNet
- ErdosRenyi
- FullConnected
- Grid2d
- Logo GSP
- LowStretchTree
- Minnesota
- Path
- RandomRegular
- RandomRing
- Ring
- Sensor
- StochasticBlockModel
- Swiss roll
- Torus

On these graphs, filters can be applied to do signal processing. To this end, there is also a list of predefined filters on this toolbox:

- Abspline
- Expwin
- Gabor
- HalfCosine
- Heat
- Held
- Itersine
- MexicanHat
- Meyer
- Papadakis
- Regular
- Simoncelli
- SimpleTf

Installation

Ubuntu

The PyGSP module is available on PyPI, the Python Package Index. If you don’t have pip, install it.:

$ sudo apt-get install python-pip

Ideally, you should be able to install the PyGSP on your computer by simply entering the following command:

$ pip install pygsp

This installation requires numpy and scipy. If you don’t have them installed already, pip installing pygsp will try to install them for you. Note that these two mathematical libraries requires additional system packages.

For a classic UNIX system, you will need python-dev(el) (or equivalent) installed as a system package as well as the fortran extension for your favorite compiler (gfortran for gcc). You will also need the blas/lapack implementation for your system. If you can’t install numpy or scipy, try installing the following and then install numpy and scipy:

$ sudo apt-get install python-dev liblapack-dev libatlas-dev gcc gfortran

Then, try again to install the pygsp:

$ pip install pygsp

Plotting

If you want to use the plotting functionalities of the PyGSP, you have to install matplotlib or pygtgraph. For matplotlib, just do:

$ sudo apt-get python-matplotlib

Another way is to manually download from PyPI, unpack the package and install with:

$ python setup.py install

Instructions and requirements to install pyqtgraph can be found at http://www.pyqtgraph.org/.

Testing

Execute the project test suite once to make sure you have a working install:

$ python setup.py test

Authors

Acknowledgment

This project has been partly funded by the Swiss National Science Foundation under grant 200021_154350 “Towards Signal Processing on Graphs”.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

PyGSP-0.4.0.tar.gz (1.8 MB view details)

Uploaded Source

Built Distribution

PyGSP-0.4.0-py2.py3-none-any.whl (1.8 MB view details)

Uploaded Python 2Python 3

File details

Details for the file PyGSP-0.4.0.tar.gz.

File metadata

  • Download URL: PyGSP-0.4.0.tar.gz
  • Upload date:
  • Size: 1.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for PyGSP-0.4.0.tar.gz
Algorithm Hash digest
SHA256 657f0a07176816206d88d33f4bafc7d471b4b80222c777294b1c1c9613b211d6
MD5 14a76fb0c9421c78cdbf4d4033bc6146
BLAKE2b-256 9646d41f24a87c6ab5a9519fdfeec30caac0937bf9cbeeb9b0ebc605a797113d

See more details on using hashes here.

File details

Details for the file PyGSP-0.4.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for PyGSP-0.4.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 af2f810cb3ed0e365146aa6da211f36a94850baaffa75d3ed73295833f475972
MD5 f7627f19718d64f8df070bb8471023f3
BLAKE2b-256 04a7618547cb775e778bd2b8a946e54b2faea3aa19f4e3ed20c64bf91f480a4c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page