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.3.tar.gz
(7.7 kB
view details)
Built Distribution
File details
Details for the file shapley:lz-0.0.3.tar.gz
.
File metadata
- Download URL: shapley:lz-0.0.3.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 | a2d1aa23c85021f0732a9f313e330a622f1dcfa257c879da1913116660555b05 |
|
MD5 | 6aa25ccf84dd3660eb5a8b170ad64b51 |
|
BLAKE2b-256 | d4f41f7d3fe1cb649eb34540d9ac2fb48ae5c0f174b2ca96058e5c6dc639a41d |
File details
Details for the file shapley_lz-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: shapley_lz-0.0.3-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 | 03c11561834f6a78f805ac2667ad0b984a7655e491fe457d09d3702fd0b7df57 |
|
MD5 | 96aa2023f98874f35b6a3b0bd3087f4b |
|
BLAKE2b-256 | b5096bfac8dca492b22929662d503977d93cac87cd865f05b280a9e3299520a5 |