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

Riesz s-Energy returns different outputs for same random seed #638

Open
LucasAlegre opened this issue Aug 20, 2024 · 3 comments
Open

Riesz s-Energy returns different outputs for same random seed #638

LucasAlegre opened this issue Aug 20, 2024 · 3 comments
Assignees

Comments

@LucasAlegre
Copy link

If you start two different Python processes and run:

get_reference_directions("energy", 4, 32, seed=42)

I get different outputs each time. I believe there is something wrong with how the random seed is set.

@blankjul blankjul self-assigned this Aug 25, 2024
@blankjul
Copy link
Collaborator

very interesting. I quickly looked into it and yes I can reproduce it that even though the random seed is provided the results don't match.

However, the np.random.seed(seed) method seems to be called in all runs.

Need to look a little more into this and will let you know.

@blankjul
Copy link
Collaborator

I think the commit above fixes this now. Can you please check?

@LucasAlegre
Copy link
Author

I cannot install it from source because I'm using python 3.8 and pymoo now requires python>=3.9 :/

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