Skip to content

init commit, ported the code from PROBE paper to our repo#24

Closed
HashirA123 wants to merge 0 commit intocharmlab:mainfrom
HashirA123:main
Closed

init commit, ported the code from PROBE paper to our repo#24
HashirA123 wants to merge 0 commit intocharmlab:mainfrom
HashirA123:main

Conversation

@HashirA123
Copy link
Contributor

This was just quickly put together to copy over the implementation of the PROBE framework from this repo: https://github.com/MartinPawelczyk/ProbabilisticallyRobustRecourse

Will do more rigorous testing to make sure it works; however, the experiments from the original I was able to run.

@HashirA123 HashirA123 marked this pull request as ready for review October 3, 2025 17:07
cost = np.mean(np.abs(test_factual.drop(columns=["prediction"]).values - df_cfs.drop(columns=["prediction"]).values).sum(axis=1))
print("Average Cost (AC): ", cost)

if __name__ == "__main__":
Copy link
Collaborator

Choose a reason for hiding this comment

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

The reproduce.py file should include unit tests to assert whether the output of the implemented method aligns with the reported results or not.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Overall, the method is implemented correctly, thank you for your effort! However, the reproduce.py file should be written as unit tests instead of a standalone script. Please update it accordingly, and then run your implemented method on the available datasets and models. Finally, add the results to results.csv.

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.

2 participants