Skip to main content

A python interface to vinecopulib

Project description

pyvinecopulib

Build Status License: MIT

What are vine copulas?

Vine copulas are a flexible class of dependence models consisting of bivariate building blocks (see e.g., Aas et al., 2009). You can find a comprehensive list of publications and other materials on vine-copula.org.

What is pyvinecopulib?

pyvinecopulib is the python interface to vinecopulib, a header-only C++ library for vine copula models based on Eigen. It provides high-performance implementations of the core features of the popular VineCopula R library, in particular inference algorithms for both vine copula and bivariate copula models. Advantages over VineCopula are

  • a stand-alone C++ library with interfaces to both R and Python,
  • a sleaker and more modern API,
  • shorter runtimes and lower memory consumption, especially in high dimensions,
  • nonparametric and multi-parameter families.

Prerequisites

  • NumPy
  • To install from source: a compiler with C++11 support (Linux, OS X) or Visual Studio 2015 (required for all Python versions, see notes below)

Installation

The easiest way to install the latest release is to use pip:

pip install pyvinecopulib

To install from source, just clone this repository and do pip install. Note the --recursive option which is needed for the pybind11, vinecopulib and wdm submodules:

git clone --recursive https://github.com/vinecopulib/pyvinecopulib.git
pip install ./pyvinecopulib

Examples

Jupyter notebooks with examples can be found in the examples folder.

Building the documentation

Documentation for the example project is generated using Sphinx. The following command generates HTML-based reference documentation; for other formats please refer to the Sphinx manual:

  • cd pyvinecopulib/docs
  • make html

License

pyvinecopulib is provided under an MIT license that can be found in the LICENSE file. By using, distributing, or contributing to this project, you agree to the terms and conditions of this license.

Special notes for Windows

Compiler requirements

Pyvinecopulib requires a C++11 compliant compiler, i.e Visual Studio 2015 on Windows. This applies to all Python versions, including 2.7. Unlike regular C extension modules, it's perfectly fine to compile a pyvinecopulib module with a VS version newer than the target Python's VS version.

Runtime requirements

The Visual C++ 2015 redistributable packages are a runtime requirement for this project. If you use the Anaconda Python distribution, you can add vs2015_runtime as a platform-dependent runtime requirement for you package: see the conda.recipe/meta.yaml file in this example.

Contact

If you have any questions regarding the library, feel free to open an issue or send a mail to info@vinecopulib.org.

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

pyvinecopulib-0.2.0.tar.gz (23.7 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pyvinecopulib-0.2.0-cp37-cp37m-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.7mWindows x86-64

pyvinecopulib-0.2.0-cp37-cp37m-manylinux1_x86_64.whl (11.8 MB view details)

Uploaded CPython 3.7m

pyvinecopulib-0.2.0-cp37-cp37m-macosx_10_13_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.7mmacOS 10.13+ x86-64

pyvinecopulib-0.2.0-cp36-cp36m-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.6mWindows x86-64

pyvinecopulib-0.2.0-cp36-cp36m-manylinux1_x86_64.whl (11.8 MB view details)

Uploaded CPython 3.6m

pyvinecopulib-0.2.0-cp36-cp36m-macosx_10_13_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.6mmacOS 10.13+ x86-64

pyvinecopulib-0.2.0-cp35-cp35m-manylinux1_x86_64.whl (11.8 MB view details)

Uploaded CPython 3.5m

pyvinecopulib-0.2.0-cp35-cp35m-macosx_10_13_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.5mmacOS 10.13+ x86-64

File details

Details for the file pyvinecopulib-0.2.0.tar.gz.

File metadata

  • Download URL: pyvinecopulib-0.2.0.tar.gz
  • Upload date:
  • Size: 23.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.5

File hashes

Hashes for pyvinecopulib-0.2.0.tar.gz
Algorithm Hash digest
SHA256 81e70a23044a3cfe8344f3594a0ff0be76208edfb6df490e5db66243cccdc117
MD5 e3f7bc3d64c4d54b8773b3057db96837
BLAKE2b-256 a71cc25d87ab0e3ecd6ac5bcd919398f1631f12246316521b9f4dc6f99c19166

See more details on using hashes here.

File details

Details for the file pyvinecopulib-0.2.0-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: pyvinecopulib-0.2.0-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.5

File hashes

Hashes for pyvinecopulib-0.2.0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 723cfa8fad92a2de9ba37807892a6338f090ffbb20f1df487bec79612dcda56b
MD5 6d5c4167e83e2106745ccb35c2f3ce52
BLAKE2b-256 52b143e254f8d028f8dfd067f5c5ec07e179630497a2e775e523543fa9f04f61

See more details on using hashes here.

File details

Details for the file pyvinecopulib-0.2.0-cp37-cp37m-manylinux1_x86_64.whl.

File metadata

  • Download URL: pyvinecopulib-0.2.0-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 11.8 MB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.5

File hashes

Hashes for pyvinecopulib-0.2.0-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 f160cc6d57c590a6a0b2634561268c5275308df972e8f5b96642bac6155dca6e
MD5 0020825b5de1f42ccdd5bf7807c284f5
BLAKE2b-256 17427d2f5fb1ddd4d86585c16a949df4c93a0633c7952d2fbae3a23b29675fb2

See more details on using hashes here.

File details

Details for the file pyvinecopulib-0.2.0-cp37-cp37m-macosx_10_13_x86_64.whl.

File metadata

  • Download URL: pyvinecopulib-0.2.0-cp37-cp37m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: CPython 3.7m, macOS 10.13+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.5

File hashes

Hashes for pyvinecopulib-0.2.0-cp37-cp37m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 d88381a6941fc2cbbbdde69eb7cee05fefa04764519f65ddc1eaa1e82bae251e
MD5 c868eebf79f06b2734a55c4d83549bab
BLAKE2b-256 5bb9a162c0290d4ccaf6eb3997073a7ee87db9f836efac4d5090f0dfd087cf07

See more details on using hashes here.

File details

Details for the file pyvinecopulib-0.2.0-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: pyvinecopulib-0.2.0-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.5

File hashes

Hashes for pyvinecopulib-0.2.0-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 08ea7e4dc1ab6aeb2dfafa80abe7e31472c937edd49c89804699206d76193829
MD5 5150985145a70a51c5f9d6f29dab27b8
BLAKE2b-256 630bcc9da69e35b111aba664b4d1dd7b126f4b2aa940744d221feab92433c507

See more details on using hashes here.

File details

Details for the file pyvinecopulib-0.2.0-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

  • Download URL: pyvinecopulib-0.2.0-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 11.8 MB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.5

File hashes

Hashes for pyvinecopulib-0.2.0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 a5034a97d39bbe660ee99c837473eda86c3cc91b01787b0a5f85afbea30ff43e
MD5 6d1ee82a8841f220e78305d1a98de238
BLAKE2b-256 dd3ac57f579238686d122df7dcb52a7299c2268c8756a86ca7f5b2f97913d809

See more details on using hashes here.

File details

Details for the file pyvinecopulib-0.2.0-cp36-cp36m-macosx_10_13_x86_64.whl.

File metadata

  • Download URL: pyvinecopulib-0.2.0-cp36-cp36m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: CPython 3.6m, macOS 10.13+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.5

File hashes

Hashes for pyvinecopulib-0.2.0-cp36-cp36m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 7f3322f0acf4368c0346315f425996fe6f772762db9af4221fcd84ae2cf7aa7e
MD5 7bce6b6e61070f5080d5a8e898718ece
BLAKE2b-256 7f80bc08de92b93f8ebf210661b818fbb6ca5b6aaafae6ebec3188e1c8ff0892

See more details on using hashes here.

File details

Details for the file pyvinecopulib-0.2.0-cp35-cp35m-manylinux1_x86_64.whl.

File metadata

  • Download URL: pyvinecopulib-0.2.0-cp35-cp35m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 11.8 MB
  • Tags: CPython 3.5m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.5

File hashes

Hashes for pyvinecopulib-0.2.0-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 be9cef9da0ec0cb281fbc65a770953f4298c6e7377979fbcca99c2a4f366f542
MD5 6b950ea5cb430203b2dd9719ed9298f0
BLAKE2b-256 e151744734e08fbab69bb7f94abff9d69b90e442bbbd309327de9996b251b27b

See more details on using hashes here.

File details

Details for the file pyvinecopulib-0.2.0-cp35-cp35m-macosx_10_13_x86_64.whl.

File metadata

  • Download URL: pyvinecopulib-0.2.0-cp35-cp35m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: CPython 3.5m, macOS 10.13+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.5

File hashes

Hashes for pyvinecopulib-0.2.0-cp35-cp35m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 c75f4c6b9a968a71870ada327d02a51c5b5bb23d80c3370a3df786360dd53285
MD5 3d21dc21f50f129f64301c632f3b5904
BLAKE2b-256 933efef169d90cec3441b828c00324ebc1efc9d1bfe3e55dfeef724629948abf

See more details on using hashes here.

Supported by

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