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

Fix flaky test for sensitivity analysis #2268

Closed
wants to merge 1 commit into from

Conversation

bletham
Copy link
Contributor

@bletham bletham commented Mar 13, 2024

Summary:
This fixes a flaky test for sensitivity analysis. Currently the QMC
integration done for computing Sobol indices is seeded for reproducibility.
That done for computing derivative-based sensitivity measures is not. This diff
changes that so that the derivative-based measures will also have seeded QMC
with the same seed, to match Sobol indices.

A side effect of this is that it fixes the flaky test, since the results are no
longer random based on the QMC points.

Reviewed By: bernardbeckerman

Differential Revision: D54855136

Summary:
This fixes a flaky test for sensitivity analysis. Currently the QMC
integration done for computing Sobol indices is seeded for reproducibility.
That done for computing derivative-based sensitivity measures is not. This diff
changes that so that the derivative-based measures will also have seeded QMC
with the same seed, to match Sobol indices.

A side effect of this is that it fixes the flaky test, since the results are no
longer random based on the QMC points.

Reviewed By: bernardbeckerman

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

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

@facebook-github-bot facebook-github-bot added CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported labels Mar 13, 2024
@codecov-commenter
Copy link

codecov-commenter commented Mar 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.90%. Comparing base (aa9025e) to head (8fde445).

❗ Current head 8fde445 differs from pull request most recent head a885b93. Consider uploading reports for the commit a885b93 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2268   +/-   ##
=======================================
  Coverage   94.89%   94.90%           
=======================================
  Files         481      481           
  Lines       47057    47061    +4     
=======================================
+ Hits        44656    44662    +6     
+ Misses       2401     2399    -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@saitcakmak
Copy link
Contributor

merged

@saitcakmak saitcakmak closed this Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants