enthought / enthought/distarray

Support random.get_state(), random.set_state().

Open
#254 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
5
Forks
1
PR merge metrics
No merged PRs in 30d

Description

It would be nice to support the `numpy.random` methods `get_state()` and `set_state()` for the distributed system. This would let the user save and restore the global prng generator state, even when they did not use a deterministic seed to begin with.

For the distributed system, this would presumably work with a list of generator states, one per engine, since these are in general different. I started to try an implement this in PR #253, but the data being communicated is fairly large (about 624 integers per engine), which was slow. This specific usage was considered less important than what #253 provides, so this issue is created to note the desire for later.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.