Python wrapper for cppEDM using pybind11
Project description
Empirical Dynamic Modeling (EDM)
This package provides a Python/Pandas DataFrame interface to the cppEDM library for EDM analysis. Introduction and documentation are are avilable online, or in the package API docs.
Functionality includes:
- Simplex projection (Sugihara and May 1990)
- Sequential Locally Weighted Global Linear Maps (S-map) (Sugihara 1994)
- Multivariate embeddings (Dixon et. al. 1999)
- Convergent cross mapping (Sugihara et. al. 2012)
- Multiview embedding (Ye and Sugihara 2016)
Installation
Python Package Index (PyPI)
Certain MacOS, Linux and Windows platforms are supported with prebuilt binary distributions installed from PyPI pyEDM using the Python pip module.
Command line using the Python pip module: python -m pip install pyEDM
Manual Install
Unfortunately, we do not have the resources to provide pre-built binary distributions for all computer platforms. In this case the user can build the cppEDM library on their machine, then install the Python package using pip. On OSX and Linux this requires g++. On Windows, mingw and Microsoft Visual Studio Compiler (MSVC) which can be obtained from Build Tools for Visual Studio 2019
. Only the Windows SDK is needed.
Note that the LAPACK library is required to build cppEDM.
OSX and Linux
- Download pyEDM:
git clone https://github.com/SugiharaLab/pyEDM
- Build cppEDM library:
cd pyEDM/cppEDM/src; make
- Build and install package:
cd ../..; python -m pip install . --user --trusted-host pypi.org
Windows
- We do not have resources to maintain windows build support. These suggestions may be useful.
- Requires mingw installation.
- Requires gfortran libraries.
- Download pyEDM:
git clone https://github.com/SugiharaLab/pyEDM
- Build cppEDM library:
cd pyEDM\cppEDM\src; make
- Adjust paths to find gfortran and openblas libraries (pyEDM/pyEDM/etc/windows/libopenblas.a). You may need to rename libEDM.a to EDM.lib, and openblas.a to openblas.lib.
- Build and install package in
pyEDM\
:python -m pip install . --user --trusted-host pypi.org
Usage
Example usage at the python prompt:
>>> import pyEDM
>>> pyEDM.Examples()
References
Sugihara G. and May R. 1990. Nonlinear forecasting as a way of distinguishing chaos from measurement error in time series. Nature, 344:734–741.
Sugihara G. 1994. Nonlinear forecasting for the classification of natural time series. Philosophical Transactions: Physical Sciences and Engineering, 348 (1688) : 477–495.
Dixon, P. A., M. Milicich, and G. Sugihara, 1999. Episodic fluctuations in larval supply. Science 283:1528–1530.
Sugihara G., May R., Ye H., Hsieh C., Deyle E., Fogarty M., Munch S., 2012. Detecting Causality in Complex Ecosystems. Science 338:496-500.
Ye H., and G. Sugihara, 2016. Information leverage in interconnected ecosystems: Overcoming the curse of dimensionality. Science 353:922–925.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Hashes for pyEDM-1.7.1.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 825a6d88714331c4bb61b9b6adf540f01c7102d365488e870bc9304622428ba4 |
|
MD5 | a73b6b4c7b82de9bcaf4b3f7e99bc9c5 |
|
BLAKE2b-256 | fe452f0c4e136b5350eb3fdb96035b37c89c8d053abf14224b57af42fff04a19 |
Hashes for pyEDM-1.7.1.0-cp38-cp38-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 964396a0d5fef41f36cb492699cc51a0a679e191eb7619349b211d25d519cd13 |
|
MD5 | d800429d7f18b5034580934cbcbbafd7 |
|
BLAKE2b-256 | b0c598192e097b1de1043953e1a9d51002bfe1e1deb9b115fde8d3d6dae8a321 |
Hashes for pyEDM-1.7.1.0-cp38-cp38-manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4931a34510b09f0f8cc4d1ec25719ff3c1f494673980df308a972f46c824820 |
|
MD5 | 42d9d5f8430e4127f94db362f945857a |
|
BLAKE2b-256 | 201309e64534fbd1d4d81a27f2807b31fcb0e70f303cf76f3b8b1ef0e5c26bcb |
Hashes for pyEDM-1.7.1.0-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f76c822819d05cc773e26c086306b36e6eccbaf88dce2308299a717680c64f6d |
|
MD5 | b30a4869ce19ecc1debaef16e687833b |
|
BLAKE2b-256 | 65352c36feea7215a2b1d46a5287ad81dc2959a1b986827158ee97a46dd35b11 |
Hashes for pyEDM-1.7.1.0-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3998f8ea44f2267c6ff8440a712cec7a1f7fad710c8702ab693f4f050c76ecbf |
|
MD5 | 664ecd3f539140789d081a3538a662cb |
|
BLAKE2b-256 | 5b133289ccdc8bdb3684cea98a1128bf78803460fac6e3d8640e156844be4c95 |
Hashes for pyEDM-1.7.1.0-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36a0c21e1a737595fa049aa744c4caf75b9f64b0a5d9586cd38754b70e2ace5e |
|
MD5 | aeb8a3e9281195d3db94b3bdda6de016 |
|
BLAKE2b-256 | b2e881eef1e32e39b82dc61211718eb2efa4f3dcf78c8751cf890447022a5982 |
Hashes for pyEDM-1.7.1.0-cp37-cp37m-manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | beaee36102122872254b9bae59d12367549f0ca749366735d09e8ff1c1ba2834 |
|
MD5 | fa4358cf24616ab86082211172f67562 |
|
BLAKE2b-256 | 3f3ba76d27a57c9c362ba4132386740d0cc5008c75805864bff1a25018558cdc |
Hashes for pyEDM-1.7.1.0-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2528c2aad1e8c3023f3846a86c857dd96ecd386fa314bfe40c666350b7e9933a |
|
MD5 | 1f03e86976cb2263e40a3e5c6746e6c7 |
|
BLAKE2b-256 | bbb736d9be5904d9a39eae11e955585a0b76ab322899f0621162891738dbae9f |
Hashes for pyEDM-1.7.1.0-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2968856ff6e0a5283d86abcbfd845e4c0987910574097c2f8485e9a53e0fc998 |
|
MD5 | 2faa3ff9ade9e70dec436f4987b35f19 |
|
BLAKE2b-256 | 7189559954f0e4b6d1245075629d83a4458375bb936a562622b78af11fa7de43 |
Hashes for pyEDM-1.7.1.0-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe54be0d221f232e46417df2b56ec8f8a1c4e0c41931020323a3ac267024ae92 |
|
MD5 | d9711ecc70ef2b43e3b69dd377b794cb |
|
BLAKE2b-256 | 2444f135060111c48efb9d80a434e5f0b5a4a3ac1b2a4661892e9a59daf8f9cc |
Hashes for pyEDM-1.7.1.0-cp36-cp36m-manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b284f5abcf04b68016128f734f724240e74a9a6e79de281a5dcc27edbe5c5b50 |
|
MD5 | 9a8cced73342e1bd159d932ec429327f |
|
BLAKE2b-256 | f6c6c7f84c383ff32b25b1e1afcae8a2f34f6434e8fdf16dc816b0a4c742c31b |
Hashes for pyEDM-1.7.1.0-cp36-cp36m-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e55c940a03d05aeadb5a0631002891d74d633611b13411c2891fdf8a68e72676 |
|
MD5 | 7616017cb752979bae00993e39d1234c |
|
BLAKE2b-256 | 7a1de595f3df351c19c978d9dde44d0c9dd88b57b1b7d115066a7be1581d4eca |
Hashes for pyEDM-1.7.1.0-cp35-cp35m-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b1bddc6733577d76b5aefaba84dad8507be107656a66fcbe88021f524a1faac |
|
MD5 | 8f01a0bf77aa045020ccd145fbf8bbd2 |
|
BLAKE2b-256 | 11ecb092b46272b63620f5f6c2fb3188443a1e5c7a5c4928f444fe32788dd8d5 |