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
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 Distribution
shapley:lz-0.0.11.tar.gz
(11.8 kB
view details)
Built Distribution
File details
Details for the file shapley:lz-0.0.11.tar.gz
.
File metadata
- Download URL: shapley:lz-0.0.11.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80607dd7b8bb23cd08dd336b4e93a25974e929419f8062db25a9b8fe506774cf |
|
MD5 | d7d0eb44fec539af3aad665df41a6c53 |
|
BLAKE2b-256 | 9fa7d9e90f619f927eb0e6033268d39b19ff1489a7e3ff0b6073435b2f07800b |
File details
Details for the file shapley_lz-0.0.11-py3-none-any.whl
.
File metadata
- Download URL: shapley_lz-0.0.11-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e9153db18600ab610309a4b036fc3bc5300da455193714d42fb7366337cc8c1 |
|
MD5 | 26ce1293e2b69e7541163a1215a1e064 |
|
BLAKE2b-256 | 379f63d5e3f119552f83425ed1f7d96cb4ed54b0881556ce7c82c6cdf05fefcd |