Skip to content

PySHAC v0.3.5.0

Compare
Choose a tag to compare
@titu1994 titu1994 released this 21 Mar 06:35
· 8 commits to master since this release

Changelog

Improvements

  • All engines can now be locally seeded for deterministic behavior.

This can be done either with an engine level seed :

shac = pyshac.SHAC(...)
shac.set_seed(seed)  # deterministic from now onwards

Or as a context level seed :

shac = pyshac.SHAC(...)

with shac.as_deterministic(seed):  # deterministic within scope, reverts to random outside it.
    ...

Breaking Changes

  • np.random.seed(seed) no longer seeds the engine.
  • The only way to make the engine deterministic is to use one of the above methods.