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.2.tar.gz
(7.7 kB
view details)
Built Distribution
File details
Details for the file shapley:lz-0.0.2.tar.gz
.
File metadata
- Download URL: shapley:lz-0.0.2.tar.gz
- Upload date:
- Size: 7.7 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.51.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0d90e4016e07edbae46def241c425e39a4e6b92b7bb707c482d24446230a9a2 |
|
MD5 | 3b11b034e05efefccca2e060bb6c257d |
|
BLAKE2b-256 | a4bda38e9295aa12ee17a6a6fec469f576a6cfecdb7a8fbd9867e239a9e2d819 |
File details
Details for the file shapley_lz-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: shapley_lz-0.0.2-py3-none-any.whl
- Upload date:
- Size: 7.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.51.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 850f92b8e761f32bfc3a1455f568977f5c869c2e0a3a83dd55378c25b5bb9e2e |
|
MD5 | 5eec5a08e2ef297d30c8c42bd33f66c0 |
|
BLAKE2b-256 | a6bbb58c7cedb9272f9291b1ff144166abfcc338323a34932c2b5d41fed12c3a |