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

feat: expose parameter skip_values for Sobol sequence to user #89

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

sbrandstaeter
Copy link
Contributor

Description and Context

With skip_values, the user can determine the number of points in Sobol' sequence to skip.
On the one hand, this can serve as a type of seed for the quasi-random sequence.
On the other hand, it allows the sampling of additional points if the sample size is too small in an initial run.

Additional sample points would, e .g., work like this:

Run 1:
skip_values_1 = 512
num_samples_1 = 1024

Run 2:
skip_values_2 = skip_values_1 + num_samples_1 = 1536
num_samples_2 = 1024

These two runs should be identical to running one run with:
skip_values = 512
num_samples = 2048

Related Issues and Pull Requests

  • Closes
  • Blocks
  • Is blocked by
  • Follows
  • Precedes
  • Related to
  • Part of
  • Composed of

How Has This Been Tested?

Checklist

  • My commit messages mention the appropriate issue numbers (advised but optional).
  • I mention the appropriate issue numbers in this PR.
  • I updated documentation where necessary.
  • I have added tests to cover my changes.

Additional Information

Interested Parties

Possible reviewers:

Other interested parties:

Copy link
Contributor

@leahaeusel leahaeusel left a comment

Choose a reason for hiding this comment

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

Nice addition!

queens/iterators/sobol_index_iterator.py Outdated Show resolved Hide resolved
queens/iterators/sobol_index_iterator.py Outdated Show resolved Hide resolved
@@ -63,6 +65,7 @@ def __init__(
num_bootstrap_samples,
confidence_level,
result_description,
skip_values=1024,
Copy link
Contributor

Choose a reason for hiding this comment

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

Why have a default of skipping 1024 values? I guess this is related to the method itself?

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.

3 participants