Skip to main content

Library for constructing variable bandwidth diffusion maps

Project description

This is the home of the documentation for pyDiffMap, an open-source project to develop a robust and accessible diffusion map code for public use. Our documentation is currently under construction, please bear with us.

  • Free software: MIT License.


Pydiffmap is installable using pip. You can install it using the command

pip install pyDiffMap

You can also install the package directly from the source directly by downloading the package from github and running the command below, optionally with the “-e” flag for an editable install.

pip install [source_directory]


To run the all tests run:


Note, to combine the coverage data from all the tox environments run:

set PYTEST_ADDOPTS=--cov-append
PYTEST_ADDOPTS=--cov-append tox

If you don’t have tox installed, you can also run the python tests directly with


Changelog (2019-02-04) New Features ~~~~~~~~~~~~ * Added a more generous epsilon procedure for convenience.

0.2.0 (2019-02-01)

New Features

  • Added support for user-provided kernel functions.
  • Added a utility for building a sparse matrix from a function on the data.
  • (Re)added separate TMDmap class wrapping base diffusion map class to allow for easier construction of TMDmaps.
  • Added ability to explicitly provide the sampled density for q^alpha normalization.
  • Added Variable Bandwidth Diffusion Maps.
  • Added a new out-of-sample extension method that should work for variable bandwidth methods.

Tweaks and Modifications

  • Changed from exp^(-d^2) to exp^(-d^2/4) convention.
  • Moved weight functionality into a function provided on initialization, rather than input values, and added a helper function that allows values to be read from a lookup table.
  • Improved the Diffusion Map test suite.
  • Moved out-of-sample routines into separate functions.
  • Moved matrix symmetrization into newly made utility file.
  • Adjusted constructor for the diffusion map to take the kernel object directly.


  • Fixed bug where weight matrices were not included for out of sample extension.


  • Moved to MIT license.

0.1.0 (2017-12-06)

  • Fixed issues.

0.1.0 (2017-12-06)

  • Added base functionality to the code.

Project details

Download files

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

Files for pydiffmap, version
Filename, size File type Python version Upload date Hashes
Filename, size pydiffmap- (14.5 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size pydiffmap- (3.3 MB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page