8000 GitHub - muzikr/Shapleypy: A python library for cooperative game theory
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

muzikr/Shapleypy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shapleypy

A python library for cooperative game theory

PyPI - Version PyPI - Python Version Test License: GPL v3


Table of Contents

Installation

To install latest stable version use:

pip install shapleypy

To install latest development version you can clone the repository and use hatch (must be installed) to create an enviroment containg latest dev version:

hatch shell

or build the project and install it to whatever enviroment you want:

hatch build
# the wheel will be located in dist directory
pip install $PATH_TO_WHEEL_FILE

Linux

Few non-python dependencies have to be installed prior the installation of the Shapleypy. Those could be installed via distribution package manager.

Ubuntu:

sudo apt-get install -y ppl-dev libgmp-dev libmpfr-dev libmpc-dev

MacOS

There are some non-python requirements. These could be installed via homebrew:

brew install ppl gmp mpfr libmpc

Note

If you installed those dependencies via brew as shown you probably also will need to set paths of libraries installed by brew for clang: export CFLAGS="-I/opt/homebrew/include/ -L/opt/homebrew/lib/ -I/opt/homebrew/include/ -L/opt/homebrew/lib $CFLAGS"

Windows

Warning

The core solution concept is currently not available for Windows.

License

Shapleypy is distributed under the terms of the GPL-3.0 license.

0