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.4.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c01dbd6ee929efda28ec30abf5a607538c670505b885789ef7e5180c7574384 |
|
MD5 | 5ddb3e104101f1e2a9434da944217b2a |
|
BLAKE2b-256 | 18b87d5f8e94f4ba72433d8d337b8472d14d0dd67340e9fbd89279a3e1c18dde |
Hashes for pyEDM-1.7.4.0-cp38-cp38-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb149e1c2b63f80465d2b7aa116a3aab9d68cabc4cb5010cfa7ab8b910086c26 |
|
MD5 | df1d1b6b26bbc993615142c183b875c5 |
|
BLAKE2b-256 | 83e2e11f707958b4121acd950c5d83b07a0887db5898e91e568d92bd12b8b7a1 |
Hashes for pyEDM-1.7.4.0-cp38-cp38-manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3fe59f1c0c6f66a9e65554ef78f7771e5fe65d12395a3fe9002c8a461428421 |
|
MD5 | 38b9c204bca983eba39eebcab4fccc9f |
|
BLAKE2b-256 | b4b77461ff4439c7a021b56daba60d9e253d1d8ade422f1a2f3958d8af9e0da2 |
Hashes for pyEDM-1.7.4.0-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d82cbef6034104629f70c742d90fd819ddd8c3912626ec1ee47f0117a025943 |
|
MD5 | 100ad7287443983539321f43f43867b0 |
|
BLAKE2b-256 | 6845317f67eb353b580830bf1db4392c84e98c05eafa72b2bace0cd36bf777c1 |
Hashes for pyEDM-1.7.4.0-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0a8b55ff3084c43d3d3f66273c60e0c8e59414eee46092be2e59a5034876946 |
|
MD5 | 3d28d820b8409fdd49f62bb4547ed638 |
|
BLAKE2b-256 | f2151800fd9660b86a777d428d604d5de91e6c2dd568c9aa7a0e397aa382807f |
Hashes for pyEDM-1.7.4.0-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a284c95030bb93c5e49b00378c991f1b6cd62a09d68a809da997335ed56d4bc6 |
|
MD5 | 8460853c17746871a7599f66bf07a7c7 |
|
BLAKE2b-256 | 951abde19a561a3c77cbbdfd89ea223ce0553d3bf1b697bac261bfd51b97f5f0 |
Hashes for pyEDM-1.7.4.0-cp37-cp37m-manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9efcc79ae331c42f2dfcf4dd8d5fa39229bfe7a8cea1ff05b92f9ac74f151bc |
|
MD5 | 4f4812d4bb33d249a1607835fa050708 |
|
BLAKE2b-256 | 48d25b7e26852aa7807bb35c14c18783d129df6afd2fd3c400e5fe0212b71e3c |
Hashes for pyEDM-1.7.4.0-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 043232b04f4fc150d9dfda6deec7e8731373a6c54bc271fe5f523aee751b8502 |
|
MD5 | 0dc675142685278388629697e9606348 |
|
BLAKE2b-256 | 6a0815fa08f112fb427ea8e7b7b0fbeb533ad4d93a6316691ac5d85e23bc70ae |
Hashes for pyEDM-1.7.4.0-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 787d251307b25fdb8eb6d75c9b206b81c6d936a3da437eeeb32ef13095471ad4 |
|
MD5 | 37ace1116ba601eb5517196b97e3a539 |
|
BLAKE2b-256 | 6a932e5667151c68e53a8233a83a4310703f890cbb6d1bf55c969c0c2f14dbc2 |
Hashes for pyEDM-1.7.4.0-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3fba65371a7d0f3b01d0475ecfdf5a1bad1d97a1fb00b2fcc03b26af7b8e1640 |
|
MD5 | fb5cde0164422b5ba87a037c43e89da4 |
|
BLAKE2b-256 | 16b53576beaafdc086f3ab221612d7b1180acfd0b8440ebf011cff498519639d |
Hashes for pyEDM-1.7.4.0-cp36-cp36m-manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1dbc604d1451bd6c60edba57d6bfa19ff5cd870466547366f771eb98611048be |
|
MD5 | 3d41278f05fd1d11f5a5ba5c97696a89 |
|
BLAKE2b-256 | 97a70dcc78f65b9a8d31c121f786a6e612064adfee3df4b2f62e7a23b4181534 |
Hashes for pyEDM-1.7.4.0-cp36-cp36m-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3a961ff07859706edb169c36aeb37cbc1dd999c133528e8dc7b5f1cc1996e1e |
|
MD5 | 0a4b05627818958b6426dadf852a4ac5 |
|
BLAKE2b-256 | 3eeb6e80e026405fdb3b26ab478a7363afcd57dc0437ebe4587cb424d3241b23 |
Hashes for pyEDM-1.7.4.0-cp35-cp35m-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4db1a461e4a0787f81c7c0f9d44e13b33fd419787d9ffd7b4cd4feef2d32fa5 |
|
MD5 | ceb5e696fcc6f0393d653170a2453bb2 |
|
BLAKE2b-256 | dff63ccd6a0cf101bd13bbcb2b2aea7fad6f0d85be029ff9fb50c29419660c7e |