Skip to main content

A fast shapley score calculator

Project description

Shapley

PyPI - Version MIT licensed

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

shapleyrs-0.1.1.tar.gz (8.9 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

shapleyrs-0.1.1-cp39-abi3-win_amd64.whl (198.4 kB view details)

Uploaded CPython 3.9+Windows x86-64

shapleyrs-0.1.1-cp39-abi3-win32.whl (189.1 kB view details)

Uploaded CPython 3.9+Windows x86

shapleyrs-0.1.1-cp39-abi3-musllinux_1_2_x86_64.whl (527.2 kB view details)

Uploaded CPython 3.9+musllinux: musl 1.2+ x86-64

shapleyrs-0.1.1-cp39-abi3-musllinux_1_2_i686.whl (559.9 kB view details)

Uploaded CPython 3.9+musllinux: musl 1.2+ i686

shapleyrs-0.1.1-cp39-abi3-musllinux_1_2_armv7l.whl (624.8 kB view details)

Uploaded CPython 3.9+musllinux: musl 1.2+ ARMv7l

shapleyrs-0.1.1-cp39-abi3-musllinux_1_2_aarch64.whl (530.3 kB view details)

Uploaded CPython 3.9+musllinux: musl 1.2+ ARM64

shapleyrs-0.1.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (357.5 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ x86-64

shapleyrs-0.1.1-cp39-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl (385.9 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ s390x

shapleyrs-0.1.1-cp39-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (496.7 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ ppc64le

shapleyrs-0.1.1-cp39-abi3-manylinux_2_17_i686.manylinux2014_i686.whl (383.6 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ i686

shapleyrs-0.1.1-cp39-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (362.8 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ ARMv7l

shapleyrs-0.1.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (354.4 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ ARM64

shapleyrs-0.1.1-cp39-abi3-macosx_11_0_arm64.whl (312.0 kB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

shapleyrs-0.1.1-cp39-abi3-macosx_10_12_x86_64.whl (322.0 kB view details)

Uploaded CPython 3.9+macOS 10.12+ x86-64

File details

Details for the file shapleyrs-0.1.1.tar.gz.

File metadata

  • Download URL: shapleyrs-0.1.1.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.9.0

File hashes

Hashes for shapleyrs-0.1.1.tar.gz
Algorithm Hash digest
SHA256 70c153c64fb5969a1eaaaeca32f03514af9cf605c5390dd235855f17098ebc83
MD5 69d475d23b7ec0d59907ce9a1b731b23
BLAKE2b-256 3b882c3bf64c882043ad2eab385aed764fb2dd0105f6f5549b1c1710bc8409dd

See more details on using hashes here.

File details

Details for the file shapleyrs-0.1.1-cp39-abi3-win_amd64.whl.

File metadata

  • Download URL: shapleyrs-0.1.1-cp39-abi3-win_amd64.whl
  • Upload date:
  • Size: 198.4 kB
  • Tags: CPython 3.9+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.9.0

File hashes

Hashes for shapleyrs-0.1.1-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 b1dd48ede9b57ee81d43ebc1f3b704ede008e034a042ce88771c898e69529b00
MD5 919bfd3a6be4ffef87a69e33b3b3af84
BLAKE2b-256 c27aedc7fc0b198592b4e6e3fc4965195ea9ac2465702182a4c654086be74a92

See more details on using hashes here.

File details

Details for the file shapleyrs-0.1.1-cp39-abi3-win32.whl.

File metadata

  • Download URL: shapleyrs-0.1.1-cp39-abi3-win32.whl
  • Upload date:
  • Size: 189.1 kB
  • Tags: CPython 3.9+, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.9.0

File hashes

Hashes for shapleyrs-0.1.1-cp39-abi3-win32.whl
Algorithm Hash digest
SHA256 26e44c3780b07e878024cd125e70342b658a2e337bb8cde96d4b16d9e15011a5
MD5 0442525fa29d6304d4cb834c216754f9
BLAKE2b-256 bc5a9c69b5aca6aa2346fd845e894c6485de24a14440f5ab1128dab2df726d18

See more details on using hashes here.

File details

Details for the file shapleyrs-0.1.1-cp39-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for shapleyrs-0.1.1-cp39-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 451f985cb8fdc5333cc066726a26fb0b15f84aa40b1c2d5e134b03481d981967
MD5 75dee2f7aeca9a5915cc94e3476042ca
BLAKE2b-256 83a28b5b8a0e2f200ec2653e3f1b33eb0eded273cd796fc9ecd4b1cbe8d53d80

See more details on using hashes here.

File details

Details for the file shapleyrs-0.1.1-cp39-abi3-musllinux_1_2_i686.whl.

File metadata

File hashes

Hashes for shapleyrs-0.1.1-cp39-abi3-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 19a57b8db22cd56ce549e6a8b218e934bae0c4845b1b76103fcd5d8fd82164ea
MD5 0b20397850ef9c2f2b89ae0c68506b25
BLAKE2b-256 a5d756b03ac13ac9088d0aa504e1fd7010f57a3312ae5f2169117a1a2565649e

See more details on using hashes here.

File details

Details for the file shapleyrs-0.1.1-cp39-abi3-musllinux_1_2_armv7l.whl.

File metadata

File hashes

Hashes for shapleyrs-0.1.1-cp39-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 237ed9432e00fb4165591ef2f7f49d6a4dcc33a040c182236896563d96bccb18
MD5 a1c3a5ff5d91c6896e2dddb20cae702f
BLAKE2b-256 7df8699dbe87c691d31cc5f582098fbe41e641dd6ac1745732d043216aa8b487

See more details on using hashes here.

File details

Details for the file shapleyrs-0.1.1-cp39-abi3-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for shapleyrs-0.1.1-cp39-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 434d5113bf377b2b56e245e6859d6f8ab3eaeae7df49babd6379540c8b46125c
MD5 92d1acccb805d0f156327f56b573b67f
BLAKE2b-256 14a2439e8f13f6c55e255daa75142cabf2c52ba4e6937b903258ace0e439ab7a

See more details on using hashes here.

File details

Details for the file shapleyrs-0.1.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for shapleyrs-0.1.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 136d8b01bad3b25ff9fa2e57df18e6b7f210b63cae2230ec15c981864b0ed4b5
MD5 7ad242e8279943fcd41d249b730802e8
BLAKE2b-256 e98c264612e84b3bb7fe455b05bac4cd682955312fcc7487ca705cf119c0e3bd

See more details on using hashes here.

File details

Details for the file shapleyrs-0.1.1-cp39-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl.

File metadata

File hashes

Hashes for shapleyrs-0.1.1-cp39-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 75b9910142b9ea54c7b3d3211f1c95ab1d901bffe5edd2a0b793e6bf9930b49a
MD5 01be21b2d95a32cf0c1474d6b5177864
BLAKE2b-256 cc7d53ac69a511d62c3d574c896a9d73bbd946486a2d426bb75b6c6f146cb25f

See more details on using hashes here.

File details

Details for the file shapleyrs-0.1.1-cp39-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl.

File metadata

File hashes

Hashes for shapleyrs-0.1.1-cp39-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 578fcd5dc0eaa7b2c1b63def0df0f7d21a0d32ea40d4a77f22e0478ff1c09087
MD5 0f670af3b7626abd16109bd0462c8163
BLAKE2b-256 f538ed909700ee5d57deb77e77ad24701bf8c87e4e750f8e243755846ba13d9b

See more details on using hashes here.

File details

Details for the file shapleyrs-0.1.1-cp39-abi3-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for shapleyrs-0.1.1-cp39-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 d1e54f9ccd596a432bcced1a880cf0bbc1fd35b2656ac07a6876e73954c49173
MD5 adb7734a011c614c5b8b5581f022b91f
BLAKE2b-256 e772d68628931ce097160612e35f1ef448a69e80cc6e956da1ef4e9db7d6831d

See more details on using hashes here.

File details

Details for the file shapleyrs-0.1.1-cp39-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for shapleyrs-0.1.1-cp39-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 f2dfef191ff9606c64671700bbd1e030c99f4f971891d9c70f645284a12acbff
MD5 6dcf0a1e3cb9692b95f41f1e8bad2cac
BLAKE2b-256 06f62e0daf079f0b66dd28f94dbbd390574b7391c23cbcd8b56c09b9d0ea9f12

See more details on using hashes here.

File details

Details for the file shapleyrs-0.1.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for shapleyrs-0.1.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 f46a163052fe388a5cfb210ca1cccc71e73c48c744bda29f52f6405a9d52a4ca
MD5 3e28bb0174e4e992b6c526243ebd4056
BLAKE2b-256 2869a725ca070961097afa0c265a0d0dd3c1a605c27a1694911a5d6e3d83f1c6

See more details on using hashes here.

File details

Details for the file shapleyrs-0.1.1-cp39-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for shapleyrs-0.1.1-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 42a9ac0883fdbd65910617d64953e250770c30dbdc39913bfe5f04e1e030cff1
MD5 09910f314570594014a27c3bee2177e7
BLAKE2b-256 7c6d5018666e1bee64bbf1b159713ad263a0a86d5f9ee140ef86e6782a99281b

See more details on using hashes here.

File details

Details for the file shapleyrs-0.1.1-cp39-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for shapleyrs-0.1.1-cp39-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 c79b13d7b66f45eb38e1ef1727db34ea1c1c4cf8cc1dea7cc9382bbe67c9f0bd
MD5 c9c33eb9fd335f5eb0405ba6618eb899
BLAKE2b-256 09790b51a70a12d96b72b8f1c5a8958b61bd2c16112b00fdd59440f6db0e35ff

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page