Skip to main content

Computes the Shapley Lorenz Zonoid share of a set of covariates

Project description

Installation

Run the following to install:

pip install shapley_lz
from shapley_lz import ShapleyLorenzShare

# Compute Shapley Lorenz Zonoid values:
# model = iml_mode.fit(X_background, y_background)
lorenzshare = ShapleyLorenzShare(model.predict, X_background_data, y_background_data)
lorenzshare.shapleyLorenz_val(X_test, y_test)

Developing Shapley Lorenz Zonoid

To install lorenz_zonoid, along with the tools you need to develop and run tests, run the following in your virtualenv:

$ pip install -e .[dev]

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

shapley:lz-0.0.9.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

shapley_lz-0.0.9-py3-none-any.whl (35.3 kB view details)

Uploaded Python 3

File details

Details for the file shapley:lz-0.0.9.tar.gz.

File metadata

  • Download URL: shapley:lz-0.0.9.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.1.post20201107 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.5

File hashes

Hashes for shapley:lz-0.0.9.tar.gz
Algorithm Hash digest
SHA256 8f9dcf42457d871a41ece6baca77043e6444576cace38b8933e34be35ed9cf5b
MD5 44b47d22fdb794f587f946c0ccfbaa02
BLAKE2b-256 708ae5045fd893e675ed94b5eb02c6127d236a12c1f5f8d6393a89f82331b684

See more details on using hashes here.

File details

Details for the file shapley_lz-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: shapley_lz-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 35.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.1.post20201107 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.5

File hashes

Hashes for shapley_lz-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 8fc209cbd99d206027ce895128218947958d982875bbda742aa2e695ae0c317d
MD5 88250bf85eba2c0062d05b489deb845e
BLAKE2b-256 8b28957482a5b9e285f8c1a0c8c1e12ffe70c0b82c8a29ccacb9139d3595e253

See more details on using hashes here.

Supported by

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