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]
Metadata
Release files for shapley-lz 0.0.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| shapley:lz-0.0.11.tar.gz | 11.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| shapley_lz-0.0.11-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 47.1 kB
Release files / shapley:lz-0.0.11.tar.gz
| Download URL | shapley:lz-0.0.11.tar.gz |
|---|---|
| Size | 11.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
80607dd7b8bb23cd08dd336b4e93a25974e929419f8062db25a9b8fe506774cf
|
|
BLAKE2b-256 checksum How to use checksums |
9fa7d9e90f619f927eb0e6033268d39b19ff1489a7e3ff0b6073435b2f07800b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / shapley_lz-0.0.11-py3-none-any.whl
| Download URL | shapley_lz-0.0.11-py3-none-any.whl |
|---|---|
| Size | 35.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2e9153db18600ab610309a4b036fc3bc5300da455193714d42fb7366337cc8c1
|
|
BLAKE2b-256 checksum How to use checksums |
379f63d5e3f119552f83425ed1f7d96cb4ed54b0881556ce7c82c6cdf05fefcd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|