Skip to content

Use local random state #400

@yannikschaelte

Description

@yannikschaelte

It is cleaner to manually define a random state, pass it to pyabc and then also to all workers (appropriately reinitialized). This would allow increasing the degree of reproducibility (there was an issue on that ...) and complies with numpy's new recommendations. https://numpy.org/doc/stable/reference/random/generated/numpy.random.seed.html.

Suggest in addition allowing to pass a simple id resulting in a default Mersenne or whatever random number generator.
TBD: What if the random package is used.

Also add documentation on seeding.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions