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

Use different seeds for subspace sampling #885

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

uri-granta
Copy link
Collaborator

Related issue(s)/PRs:

Summary

When sampled with a specific seed, product spaces currently pass that seed to each of their subspaces. This means that a space A * A for example would return identical samples from both subspaces. This fixes that by offsetting the seed passed to each subspace.

Fully backwards compatible: yes

PR checklist

  • The quality checks are all passing
  • The bug case / new feature is covered by tests
  • Any new features are well-documented (in docstrings or notebooks)

Copy link
Collaborator

@hstojic hstojic left a comment

Choose a reason for hiding this comment

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

looks good

@uri-granta uri-granta merged commit beedf93 into develop Nov 5, 2024
12 checks passed
@uri-granta uri-granta deleted the uri/different_seeds_for_subspace_samples branch November 5, 2024 13:06
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