Skip to main content

A python interface to vinecopulib

Project description

pyvinecopulib

Build Status License: MIT Codacy Badge Documentation

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 (>=1.14)
  • pybind11 (>=2.4)
  • setuptools (>=30.3.0)
  • setuptools_scm (>=2.0.0)
  • 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 eigen, vinecopulib and wdm submodules:

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

Examples

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

Documentation

For documentation of the pyvinecopulib's functionality and instructions how to use it, check out our website or the docs/ folder in this repository.

Building the documentation

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

  • pip install sphinx-rtd-theme
  • cd pyvinecopulib/docs
  • python3 serve_sphinx.py

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

This package requires a C++11 compliant compiler, i.e Visual Studio 2015 on Windows. 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.

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.5.4.tar.gz (23.8 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.5.4-cp38-cp38-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.8Windows x86-64

pyvinecopulib-0.5.4-cp38-cp38-manylinux1_x86_64.whl (11.9 MB view details)

Uploaded CPython 3.8

pyvinecopulib-0.5.4-cp38-cp38-macosx_10_14_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.8macOS 10.14+ x86-64

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

Uploaded CPython 3.7mWindows x86-64

pyvinecopulib-0.5.4-cp37-cp37m-manylinux1_x86_64.whl (11.9 MB view details)

Uploaded CPython 3.7m

pyvinecopulib-0.5.4-cp37-cp37m-macosx_10_14_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.7mmacOS 10.14+ x86-64

pyvinecopulib-0.5.4-cp36-cp36m-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.6mWindows x86-64

pyvinecopulib-0.5.4-cp36-cp36m-manylinux1_x86_64.whl (11.9 MB view details)

Uploaded CPython 3.6m

pyvinecopulib-0.5.4-cp36-cp36m-macosx_10_14_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.6mmacOS 10.14+ x86-64

pyvinecopulib-0.5.4-cp35-cp35m-manylinux1_x86_64.whl (11.9 MB view details)

Uploaded CPython 3.5m

pyvinecopulib-0.5.4-cp35-cp35m-macosx_10_14_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.5mmacOS 10.14+ x86-64

File details

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

File metadata

  • Download URL: pyvinecopulib-0.5.4.tar.gz
  • Upload date:
  • Size: 23.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for pyvinecopulib-0.5.4.tar.gz
Algorithm Hash digest
SHA256 89aaafc77a5affc2ed11886955766b252fdf3a1709ab7598c10a281bbc7db032
MD5 0dcc293ad5544d25e51e3d93d193ee48
BLAKE2b-256 4a4399a5c68f5cadbaf7f40008a96b83c9661d1c45347fe1cfe8c4dd3962a5e8

See more details on using hashes here.

File details

Details for the file pyvinecopulib-0.5.4-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: pyvinecopulib-0.5.4-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for pyvinecopulib-0.5.4-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 77440fb2c5b2d8480ffe45297797498219afdeb4ddbe0e717cf7bec0cc72edf1
MD5 060639eedb711b9eca881671aef7ff7e
BLAKE2b-256 eb1a8b5f4f44d2e4b20b87b170b59a4ae87c903d68918181b04c3d813cc4e88f

See more details on using hashes here.

File details

Details for the file pyvinecopulib-0.5.4-cp38-cp38-manylinux1_x86_64.whl.

File metadata

  • Download URL: pyvinecopulib-0.5.4-cp38-cp38-manylinux1_x86_64.whl
  • Upload date:
  • Size: 11.9 MB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for pyvinecopulib-0.5.4-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 df99208deb62f51dd1ed970f95781975ba03ccdcb5c407869bea20243c062e6c
MD5 a40e5b2a7f83cb0bdb2370a9c952489f
BLAKE2b-256 9bd4752a350f590eb7ce6d3fc57b96a7f8d7cda066122e8ae9b4ab1f7be1b59f

See more details on using hashes here.

File details

Details for the file pyvinecopulib-0.5.4-cp38-cp38-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: pyvinecopulib-0.5.4-cp38-cp38-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: CPython 3.8, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for pyvinecopulib-0.5.4-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 ba6ee27ad4006dc1411b31018feadadbf69c3ae18a066704254960c235bee5b8
MD5 8e47c7d51ea7385e8cf352fe8bbd8b4e
BLAKE2b-256 79204d727721a266929b7b7d8c1e981e5f2f43f8b7663af69b3c4694c3799284

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyvinecopulib-0.5.4-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.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for pyvinecopulib-0.5.4-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 9e800a4f2b2a8c0385cd609b430f5962287366f48ea502e064266b48adeb75aa
MD5 c8acc8099f084ce5fc4fb004905a7154
BLAKE2b-256 bce12ecb0eb01bf308e3952ff9b9e864916f6c4beac8fb007765c061e08e6962

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyvinecopulib-0.5.4-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 11.9 MB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for pyvinecopulib-0.5.4-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 11054f9dba2b28f6c8d5cd7580879091aa2569aa07a7f812e673b91873b21aa0
MD5 83cd98896aa637610210ee8fff659a3b
BLAKE2b-256 a01706d488b77a95fd0fbdccd96ecc2d61b1c9c69d180970cc91c3c8a34e1f9c

See more details on using hashes here.

File details

Details for the file pyvinecopulib-0.5.4-cp37-cp37m-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: pyvinecopulib-0.5.4-cp37-cp37m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: CPython 3.7m, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for pyvinecopulib-0.5.4-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 0e2bc71d54fa938f096e3e3d684f2baa827e3a8362e06d4cfbc90fb632876a81
MD5 681cd4679f1b315a0ec7b2d7fcbe6173
BLAKE2b-256 bc4429200f2262fe0eb19c04b203f767afe2b19c13920916b6813fd9c23df176

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyvinecopulib-0.5.4-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for pyvinecopulib-0.5.4-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 d9fa916a5a24612d2ea3207d7af807342b6b8e8f1bdc4cd17dd5e06571b863c0
MD5 2fe1d780b517befbf6a7a4ef8ebf3e1e
BLAKE2b-256 6abc1facfce021dfa4750781bbce0733b9ce8d43e6fc02aab21f75bb15bb0fec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyvinecopulib-0.5.4-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 11.9 MB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for pyvinecopulib-0.5.4-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 b407bd7e6125174395b2bfbef731f2c7a80e0894ea5a8ab60fa043804d33cf8f
MD5 8a4f38785d77668ab03e9f04fb55ec2d
BLAKE2b-256 27a62789109c2f22f41d2aaf55ecbe1da7aab8239590fcff4d3003c94fb7b122

See more details on using hashes here.

File details

Details for the file pyvinecopulib-0.5.4-cp36-cp36m-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: pyvinecopulib-0.5.4-cp36-cp36m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: CPython 3.6m, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for pyvinecopulib-0.5.4-cp36-cp36m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 f1cfe8f111cb3e4ae1d958959147bd75dd03b344a3c974fb50dbf63616e5c33c
MD5 9fe739878f4b2ec3179ec7e6ad4b762b
BLAKE2b-256 7f6b7a239fd7c3bae9e6caf89a2b27f9f908b383086d9d185a416847d3b909b1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyvinecopulib-0.5.4-cp35-cp35m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 11.9 MB
  • Tags: CPython 3.5m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for pyvinecopulib-0.5.4-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 026862bf8dc6e10b12af72c453cac7e456733b4281bbab97649ade4db10c0a4f
MD5 b3e529a21c234a9fd330ab790a50b419
BLAKE2b-256 34c328faf6a5e058d7ff1cc4f57551fc30fc60e129049e2a616d3560305ae43a

See more details on using hashes here.

File details

Details for the file pyvinecopulib-0.5.4-cp35-cp35m-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: pyvinecopulib-0.5.4-cp35-cp35m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: CPython 3.5m, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for pyvinecopulib-0.5.4-cp35-cp35m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 42cf1da1dea941e74716b5580c7ca285cc6f787e4cc800a0bfa0009dd2ea5b78
MD5 de083f5ce2da4824604a478f5aa970b4
BLAKE2b-256 96df83b261bdc5d7662406b3c7700fb8a62381482217e17fd6db75278a58b39d

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