Coder Social home page Coder Social logo

benedekrozemberczki / shapley Goto Github PK

View Code? Open in Web Editor NEW
211.0 6.0 35.0 846 KB

The official implementation of "The Shapley Value of Classifiers in Ensemble Games" (CIKM 2021).

License: MIT License

Python 100.00%
shapley shapley-value owen voting-classifier machine-learning classifier random-forest random-forest-classifier explainable-ml explainable-ai ensemble ensemble-learning deep-learning voting-game game-theory game-theory-toolbox weighted-voting-games

shapley's Issues

A question about Shapley entropy

Hi Benedek,

Congrats and thanks for your great work for the community!

I compared the v1 and v2 versions of the paper on arxiv. I found that some content in sec.4.2 about how to measure ensemble heterogeneity using Shapley values was removed in the v2.

I wonder if I can use the Shapley values calculated by Troupe to measure the diversity or heterogeneity of an ensemble?
And is there any principle for measuring?

Best,

Mxk

Error in running MLE example

Thank you for sharing your great work. I truly enjoyed reading it. However, I met an error when I tried the example. It seems to be fine for the MC example.

$ python multilinear_extension_example.py
RuntimeWarning: invalid value encountered in true_divide
self._Phi = self._Phi / np.sum(self._Phi, axis=1).reshape(-1, 1)
Traceback (most recent call last):
File "multilinear_extension_example.py", line 11, in
solver.solve_game(W, q)
File "/lib/python3.6/site-packages/shapley/solvers/multilinear_extension.py", line 34, in solve_game
self._run_sanity_check(W, self._Phi)
File "/lib/python3.6/site-packages/shapley/solution_concept.py", line 28, in _run_sanity_check
self._verify_distribution(Phi)
File "/lib/python3.6/site-packages/shapley/solution_concept.py", line 22, in _verify_distribution
assert np.sum(Phi) - Phi.shape[0] < 0.001
AssertionError

The meaning of values in W

Hi, thank you for the nice repo.

I am a bit confused about the value in W. Could you use a classification example to give me some guidance?

Thank you for the help.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.