Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve testing #285

Merged
merged 26 commits into from
Dec 20, 2024
Merged

Improve testing #285

merged 26 commits into from
Dec 20, 2024

Conversation

heinzll
Copy link
Collaborator

@heinzll heinzll commented Dec 3, 2024

last commit
test test_permutation_symmetry at test_exact_computer.py failes for the CHII bc the value given for the empty set is nan instead of zero (bc of division through zero)

commit fix typos

  • should xgboost be in the supported models? -> will better the coverage bc a test is checking wheather in supported models.

commit explainer utils
in test_explainer_utils
callable check. checks the signature of the callable model, could be used in an explainer to check if the model is actually callable.

commit update after merge
@pytest.mark.skip("not possible to implement right now")
def test_class_index() (the second one)
-> checks wheather the given index for the feature to be explained is in bounds, would fail right now.

Louis and others added 16 commits October 24, 2024 17:01
* integrates the SI graph plot and streamlines the plots

* adds first draft of visualization notebook

* adds notebook to docs

* updates abbreviate function

* updates notebook

* adds unit test for abbreviate features

* fixed feature_names being None

* Delete .github/workflows/autoupdate.yml

* 190 add a tutorial notebook for data valuation (#243)

* adds useful properties to game and closes #251. (#254)

* adds useful properties to game and closes #251.

Adds `empty_coalition_value`, `grand_coalition_value` properties to game and allows for a getitem (without computation) of a game.

* fixed the setter of _empty/_grand values

* fixed the setter of _empty/_grand values

* updated empty value

* 183 make games be also callable with a tuplelist of tuples (#242)

* added possibility of tuple/list of tuple in BaseGame __call__

* Added possibility for to Game coalitions with given player_names

* Added possibility to call game based on given player_names

* removed player_names property as it caused conflicts

* made __call__ annotations for python3.9

* refactor game call with strings

* refactor game call of tuple and list

* Reimplement _check_coalitions to fewer lines.

---------

Co-authored-by: Maximilian <[email protected]>

---------

Co-authored-by: Paul Hofman <[email protected]>
Co-authored-by: Theo <[email protected]>
# Conflicts:
#	docs/source/notebooks/data_valuation.ipynb
#	docs/source/notebooks/sv_calculation.ipynb
#	shapiq/explainer/utils.py
#	shapiq/games/base.py
#	tests/conftest.py
#	tests/tests_games/test_base_game.py
@heinzll heinzll linked an issue Dec 3, 2024 that may be closed by this pull request
@mmschlk mmschlk merged commit ccc0b99 into main Dec 20, 2024
8 checks passed
@mmschlk mmschlk deleted the improve-testing branch December 20, 2024 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor Game Theory Concepts
2 participants