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

No seed variable when initializing HyMMSBMSampler #24

Open
larryzhang95 opened this issue Nov 20, 2023 · 1 comment
Open

No seed variable when initializing HyMMSBMSampler #24

larryzhang95 opened this issue Nov 20, 2023 · 1 comment

Comments

@larryzhang95
Copy link

In the HyMMSBM Sampler class, there's a random number generator variable that takes a seed value, in the constructor:

self._rng: np.random.Generator = np.random.default_rng(seed)

The solution is as easy as adding another member variable to the constructor seed, which I did on my end. I can submit a pull request if desired. It worked properly after doing that.

Note that I installed this from source , so I used pip install -e .['all'] while in the hypergraphx directory.

@FraLotito
Copy link
Contributor

Thank you for reporting this! Pull requests are welcome:)

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

No branches or pull requests

2 participants