Skip to content

Feature/64 importance sampling MarginalCDF test - #91

Merged
swinter1 merged 17 commits into
mainfrom
feature/64-importance_sampling_unit_test
Aug 29, 2025
Merged

Feature/64 importance sampling MarginalCDF test#91
swinter1 merged 17 commits into
mainfrom
feature/64-importance_sampling_unit_test

Conversation

@am-kaiser

@am-kaiser am-kaiser commented Jul 8, 2025

Copy link
Copy Markdown
Collaborator

Business need

Importance sampling is already used in the code for MarginalCDF which is in src but there are no tests to ensure that importance sampling works as desired.

Main issue:

Closes #64

Sub issues:

Notes

There will be a separate PR which tests the actual creation of the importance sampling (i.e. a test for the file importance_sampling.py which is currently part of the wave use case).

@am-kaiser am-kaiser changed the title Feature/64 importance sampling unit test Feature/64 importance sampling MarginalCDF test Jul 8, 2025
@am-kaiser
am-kaiser marked this pull request as ready for review July 14, 2025 07:48
@am-kaiser
am-kaiser requested a review from swinter1 July 14, 2025 07:49
@am-kaiser

Copy link
Copy Markdown
Collaborator Author

I'd be especially interested in getting you impression if the comments are descriptive enough or if anything is unclear and can be better explained.

I have decided to keep the integration test (if you can call it that) even though it does not really add much but I feel like it is still nice to have a minimal test just to check if the function runs.

@swinter1 swinter1 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Don't be put off by the number of comments, they are mainly cosmetic stuff - you've made a good start here, nice work.

Comment thread tests/qoi/test_marginal_cdf_extrapolation_with_importance_sampling.py Outdated
Comment thread tests/qoi/test_marginal_cdf_extrapolation_with_importance_sampling.py Outdated
Comment thread tests/qoi/test_marginal_cdf_extrapolation_with_importance_sampling.py Outdated
Comment thread tests/qoi/test_marginal_cdf_extrapolation_with_importance_sampling.py Outdated
Comment thread tests/qoi/test_marginal_cdf_extrapolation_with_importance_sampling.py Outdated
Comment thread tests/qoi/test_marginal_cdf_extrapolation_with_importance_sampling.py Outdated
Comment thread tests/qoi/test_marginal_cdf_extrapolation_with_importance_sampling.py Outdated
Comment thread tests/qoi/test_marginal_cdf_extrapolation_with_importance_sampling.py Outdated
Comment thread tests/qoi/test_marginal_cdf_extrapolation_with_importance_sampling.py Outdated
Comment thread tests/qoi/test_marginal_cdf_extrapolation_with_importance_sampling.py Outdated
Comment thread tests/qoi/test_marginal_cdf_extrapolation_with_importance_sampling.py Outdated
Comment thread tests/qoi/test_marginal_cdf_extrapolation_with_importance_sampling.py Outdated
Comment thread tests/qoi/test_marginal_cdf_extrapolation_with_importance_sampling.py Outdated
Comment thread tests/qoi/test_marginal_cdf_extrapolation_with_importance_sampling.py Outdated
Comment thread tests/qoi/test_marginal_cdf_extrapolation_with_importance_sampling.py Outdated
Comment thread tests/qoi/test_marginal_cdf_extrapolation_with_importance_sampling.py Outdated
Comment thread tests/qoi/test_marginal_cdf_extrapolation_with_importance_sampling.py Outdated
Comment thread tests/qoi/test_marginal_cdf_extrapolation_with_importance_sampling.py Outdated
Comment thread tests/qoi/test_marginal_cdf_extrapolation_with_importance_sampling.py Outdated
Comment thread tests/qoi/test_marginal_cdf_extrapolation_with_importance_sampling.py Outdated
@am-kaiser
am-kaiser requested a review from swinter1 August 12, 2025 06:20
Comment thread tests/qoi/test_marginal_cdf_extrapolation.py Outdated
@swinter1
swinter1 merged commit 16cb28c into main Aug 29, 2025
8 checks passed
@swinter1
swinter1 deleted the feature/64-importance_sampling_unit_test branch August 29, 2025 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants