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

add rise tabular #730

Merged
merged 23 commits into from
Jun 19, 2024
Merged

add rise tabular #730

merged 23 commits into from
Jun 19, 2024

Conversation

cwmeijer
Copy link
Member

@cwmeijer cwmeijer commented Mar 20, 2024

Fixes #644, #712.

What works/is included:

  • finds relevant features in simple test case
  • should work fine with categorical (as well as numerical) features
  • includes a single notebook: rise tabular tutorial with penguins
  • adds the same tests for all 3 tabular xai methods
  • links to notebooks

How to test?

  • Run the rise tabular tutorial
  • Run the tests in test_tabular.py
  • Check the linhks in tutorial/Readme.txt

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@cwmeijer cwmeijer marked this pull request as ready for review May 29, 2024 18:57
dianna/utils/maskers.py Show resolved Hide resolved
p_keep: float, number_of_features: int):
def generate_time_step_masks(input_data_shape: tuple[int],
number_of_masks: int, p_keep: float,
number_of_features: int):
"""Generate masks that masks complete time steps at a time while masking time steps in a segmented fashion.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is a bit hard to understand.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I updated the docstring. It's better now I think.

dianna/utils/maskers.py Show resolved Hide resolved
tests/methods/test_tabular.py Outdated Show resolved Hide resolved
@cwmeijer cwmeijer mentioned this pull request Jun 5, 2024
Copy link
Contributor

@elboyran elboyran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work. I left some minor comments before.

@cwmeijer cwmeijer requested a review from elboyran June 13, 2024 11:43
Copy link
Contributor

@elboyran elboyran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@cwmeijer cwmeijer merged commit eeb4e71 into main Jun 19, 2024
18 checks passed
@cwmeijer cwmeijer deleted the 644-rise-tabular branch June 19, 2024 09:13
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.

Implement tabular version of RISE
2 participants