Shapley
shapley
is a fast Shapley value calculator written in rust.
Quick Start
Install
pip install shapleyrs
Usage
from shapleyrs import Shapley
shapley = Shapley(players=[1, 2], coalition_worth={
(): 0,
(1,): 10,
(2,): 20,
(1, 2): 30,
})
print(shapley.shapley_value(1)) # 10
print(shapley.shapley_value(2)) # 20
Metadata
Release files for shapleyrs 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| shapleyrs-0.1.1.tar.gz | 8.9 kB | Details |
Built distributions (wheels)
Total release size: 5.6 MB
Release files / shapleyrs-0.1.1.tar.gz
| Download URL | shapleyrs-0.1.1.tar.gz |
|---|---|
| Size | 8.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
70c153c64fb5969a1eaaaeca32f03514af9cf605c5390dd235855f17098ebc83
|
|
BLAKE2b-256 checksum How to use checksums |
3b882c3bf64c882043ad2eab385aed764fb2dd0105f6f5549b1c1710bc8409dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.9.0
|
Release files / shapleyrs-0.1.1-cp39-abi3-win_amd64.whl
| Download URL | shapleyrs-0.1.1-cp39-abi3-win_amd64.whl |
|---|---|
| Size | 198.4 kB |
| Tags | CPython 3.9 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
b1dd48ede9b57ee81d43ebc1f3b704ede008e034a042ce88771c898e69529b00
|
|
BLAKE2b-256 checksum How to use checksums |
c27aedc7fc0b198592b4e6e3fc4965195ea9ac2465702182a4c654086be74a92
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.9.0
|
Release files / shapleyrs-0.1.1-cp39-abi3-win32.whl
| Download URL | shapleyrs-0.1.1-cp39-abi3-win32.whl |
|---|---|
| Size | 189.1 kB |
| Tags | CPython 3.9 Windows x86-32 abi3 |
|
SHA-256 checksum How to use checksums |
26e44c3780b07e878024cd125e70342b658a2e337bb8cde96d4b16d9e15011a5
|
|
BLAKE2b-256 checksum How to use checksums |
bc5a9c69b5aca6aa2346fd845e894c6485de24a14440f5ab1128dab2df726d18
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.9.0
|
Release files / shapleyrs-0.1.1-cp39-abi3-musllinux_1_2_x86_64.whl
| Download URL | shapleyrs-0.1.1-cp39-abi3-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 527.2 kB |
| Tags | CPython 3.9 Linux musl 1.2+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
451f985cb8fdc5333cc066726a26fb0b15f84aa40b1c2d5e134b03481d981967
|
|
BLAKE2b-256 checksum How to use checksums |
83a28b5b8a0e2f200ec2653e3f1b33eb0eded273cd796fc9ecd4b1cbe8d53d80
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.9.0
|
Release files / shapleyrs-0.1.1-cp39-abi3-musllinux_1_2_i686.whl
| Download URL | shapleyrs-0.1.1-cp39-abi3-musllinux_1_2_i686.whl |
|---|---|
| Size | 559.9 kB |
| Tags | CPython 3.9 Linux musl 1.2+ x86-32 abi3 |
|
SHA-256 checksum How to use checksums |
19a57b8db22cd56ce549e6a8b218e934bae0c4845b1b76103fcd5d8fd82164ea
|
|
BLAKE2b-256 checksum How to use checksums |
a5d756b03ac13ac9088d0aa504e1fd7010f57a3312ae5f2169117a1a2565649e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.9.0
|
Release files / shapleyrs-0.1.1-cp39-abi3-musllinux_1_2_armv7l.whl
| Download URL | shapleyrs-0.1.1-cp39-abi3-musllinux_1_2_armv7l.whl |
|---|---|
| Size | 624.8 kB |
| Tags | CPython 3.9 Linux musl 1.2+ ARMv7l abi3 |
|
SHA-256 checksum How to use checksums |
237ed9432e00fb4165591ef2f7f49d6a4dcc33a040c182236896563d96bccb18
|
|
BLAKE2b-256 checksum How to use checksums |
7df8699dbe87c691d31cc5f582098fbe41e641dd6ac1745732d043216aa8b487
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.9.0
|
Release files / shapleyrs-0.1.1-cp39-abi3-musllinux_1_2_aarch64.whl
| Download URL | shapleyrs-0.1.1-cp39-abi3-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 530.3 kB |
| Tags | CPython 3.9 Linux musl 1.2+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
434d5113bf377b2b56e245e6859d6f8ab3eaeae7df49babd6379540c8b46125c
|
|
BLAKE2b-256 checksum How to use checksums |
14a2439e8f13f6c55e255daa75142cabf2c52ba4e6937b903258ace0e439ab7a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.9.0
|
Release files / shapleyrs-0.1.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | shapleyrs-0.1.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 357.5 kB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
136d8b01bad3b25ff9fa2e57df18e6b7f210b63cae2230ec15c981864b0ed4b5
|
|
BLAKE2b-256 checksum How to use checksums |
e98c264612e84b3bb7fe455b05bac4cd682955312fcc7487ca705cf119c0e3bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.9.0
|
Release files / shapleyrs-0.1.1-cp39-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
| Download URL | shapleyrs-0.1.1-cp39-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl |
|---|---|
| Size | 385.9 kB |
| Tags | CPython 3.9 Linux glibc 2.17+ IBM System/390x abi3 |
|
SHA-256 checksum How to use checksums |
75b9910142b9ea54c7b3d3211f1c95ab1d901bffe5edd2a0b793e6bf9930b49a
|
|
BLAKE2b-256 checksum How to use checksums |
cc7d53ac69a511d62c3d574c896a9d73bbd946486a2d426bb75b6c6f146cb25f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.9.0
|
Release files / shapleyrs-0.1.1-cp39-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
| Download URL | shapleyrs-0.1.1-cp39-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl |
|---|---|
| Size | 496.7 kB |
| Tags | CPython 3.9 Linux glibc 2.17+ PowerPC 64-le abi3 |
|
SHA-256 checksum How to use checksums |
578fcd5dc0eaa7b2c1b63def0df0f7d21a0d32ea40d4a77f22e0478ff1c09087
|
|
BLAKE2b-256 checksum How to use checksums |
f538ed909700ee5d57deb77e77ad24701bf8c87e4e750f8e243755846ba13d9b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.9.0
|
Release files / shapleyrs-0.1.1-cp39-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
| Download URL | shapleyrs-0.1.1-cp39-abi3-manylinux_2_17_i686.manylinux2014_i686.whl |
|---|---|
| Size | 383.6 kB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-32 abi3 |
|
SHA-256 checksum How to use checksums |
d1e54f9ccd596a432bcced1a880cf0bbc1fd35b2656ac07a6876e73954c49173
|
|
BLAKE2b-256 checksum How to use checksums |
e772d68628931ce097160612e35f1ef448a69e80cc6e956da1ef4e9db7d6831d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.9.0
|
Release files / shapleyrs-0.1.1-cp39-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
| Download URL | shapleyrs-0.1.1-cp39-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl |
|---|---|
| Size | 362.8 kB |
| Tags | CPython 3.9 Linux glibc 2.17+ ARMv7l abi3 |
|
SHA-256 checksum How to use checksums |
f2dfef191ff9606c64671700bbd1e030c99f4f971891d9c70f645284a12acbff
|
|
BLAKE2b-256 checksum How to use checksums |
06f62e0daf079f0b66dd28f94dbbd390574b7391c23cbcd8b56c09b9d0ea9f12
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.9.0
|
Release files / shapleyrs-0.1.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | shapleyrs-0.1.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 354.4 kB |
| Tags | CPython 3.9 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
f46a163052fe388a5cfb210ca1cccc71e73c48c744bda29f52f6405a9d52a4ca
|
|
BLAKE2b-256 checksum How to use checksums |
2869a725ca070961097afa0c265a0d0dd3c1a605c27a1694911a5d6e3d83f1c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.9.0
|
Release files / shapleyrs-0.1.1-cp39-abi3-macosx_11_0_arm64.whl
| Download URL | shapleyrs-0.1.1-cp39-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 312.0 kB |
| Tags | CPython 3.9 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
42a9ac0883fdbd65910617d64953e250770c30dbdc39913bfe5f04e1e030cff1
|
|
BLAKE2b-256 checksum How to use checksums |
7c6d5018666e1bee64bbf1b159713ad263a0a86d5f9ee140ef86e6782a99281b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.9.0
|
Release files / shapleyrs-0.1.1-cp39-abi3-macosx_10_12_x86_64.whl
| Download URL | shapleyrs-0.1.1-cp39-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 322.0 kB |
| Tags | CPython 3.9 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
c79b13d7b66f45eb38e1ef1727db34ea1c1c4cf8cc1dea7cc9382bbe67c9f0bd
|
|
BLAKE2b-256 checksum How to use checksums |
09790b51a70a12d96b72b8f1c5a8958b61bd2c16112b00fdd59440f6db0e35ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.9.0
|