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.4.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

shapley_lz-0.0.4-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: shapley:lz-0.0.4.tar.gz
  • Upload date:
  • Size: 7.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.4.tar.gz
Algorithm Hash digest
SHA256 93fe9e1f632d54bfefd353e46e8af42a1d14962018e24fdb5114460e296f1b07
MD5 0fa8d3331e2dfbd48d92bbbfd510d660
BLAKE2b-256 22e048a280d94079d8d710f8d2f811c05078511ea18c3f8f4313ec9ca608672f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: shapley_lz-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 7.4 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 018f907f346d2ff4a3b910935631a2f6bbd22e5ebc1c35e4d8fb5ced802d21ac
MD5 9204db1b05bdb18dd6e301abae1b5bf0
BLAKE2b-256 16cc08b1dcae89a0565d211c8c4fee285eff9ec4630fe85382a91e0f68b1d95e

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