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 test coverage for futures in ShapleyValueSampling 4/n #1488

Closed
wants to merge 5 commits into from

Conversation

jjuncho
Copy link
Contributor

@jjuncho jjuncho commented Jan 18, 2025

Summary: This diffs adds more testing coverage for attribute_future to ShapleyValueSampling unit tests where forward function returns a scalar per batch, as either a float, integer, 0d tensor or 1d tensor for async methods.

Differential Revision: D68346494

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D68346494

jjuncho added a commit that referenced this pull request Jan 18, 2025
Summary:

This diffs adds more testing coverage for attribute_future to ShapleyValueSampling unit tests where forward function returns a scalar per batch, as either a float, integer, 0d tensor or 1d tensor for async methods.

Differential Revision: D68346494
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D68346494

jjuncho added a commit that referenced this pull request Jan 21, 2025
Summary:

This diffs adds more testing coverage for attribute_future to ShapleyValueSampling unit tests where forward function returns a scalar per batch, as either a float, integer, 0d tensor or 1d tensor for async methods.

Differential Revision: D68346494
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D68346494

facebook-github-bot pushed a commit that referenced this pull request Jan 21, 2025
Summary:

This diffs adds more testing coverage for attribute_future to ShapleyValueSampling unit tests where forward function returns a scalar per batch, as either a float, integer, 0d tensor or 1d tensor for async methods.

Differential Revision: D68346494
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D68346494

facebook-github-bot pushed a commit that referenced this pull request Jan 22, 2025
Summary:

This diffs adds more testing coverage for attribute_future to ShapleyValueSampling unit tests where forward function returns a scalar per batch, as either a float, integer, 0d tensor or 1d tensor for async methods.

Differential Revision: D68346494
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D68346494

jjuncho added a commit that referenced this pull request Jan 22, 2025
Summary:

This diffs adds more testing coverage for attribute_future to ShapleyValueSampling unit tests where forward function returns a scalar per batch, as either a float, integer, 0d tensor or 1d tensor for async methods.

Reviewed By: styusuf

Differential Revision: D68346494
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D68346494

Summary:

This diff implements the attribute_future method for the ShapleyValueSampling class.

Reviewed By: cyrjano

Differential Revision: D68158802
Summary:

This diffs adds more testing coverage for attribute_future to ShapleyValueSampling unit tests that handle simple shapley sampling and multi shapley sampling using the BasicModel_MultiLayer model

note: decided to parameterize the high-level unit tests since I did not want to clutter the unit test file with tests which were doing the same calculations but with the pytorch futures api. Separated the model and shapley assert methods between non-future vs future so that the differences between the two would be clear

Reviewed By: cyrjano

Differential Revision: D68229981
Summary:

This diffs adds more testing coverage for attribute_future to ShapleyValueSampling unit tests that handle shapley sampling with boolean inputs

Reviewed By: cyrjano

Differential Revision: D68230069
Summary:

This diffs adds more testing coverage for attribute_future to ShapleyValueSampling unit tests that use the BasicModel_MultiLayer_MultiInput model. Since these tests are larger, they will not be parameterized for readability

Reviewed By: csauper

Differential Revision: D68346488
Summary:

This diffs adds more testing coverage for attribute_future to ShapleyValueSampling unit tests where forward function returns a scalar per batch, as either a float, integer, 0d tensor or 1d tensor for async methods.

Reviewed By: styusuf

Differential Revision: D68346494
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D68346494

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in fc9026a.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants