You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This extends #12. simkernel should supply an individual seed to each run if requested by the user -- by supplying a seed argument to the simulation function (for the individual seed) and a seed argument to the call as the master seed. The library uses the master seed to generate the individual seeds.
fromsimkernelimportExperimentdefsim(seed):
returnseedxp=Experiment(sim)
# the seed argument is the master seed used to generate the individual seedsres=xp(repeat=3, seed=42)
# check for uniqueness of return valuesassertnp.size(res) ==3np.testing.assert_array_equal(np.sort(res), np.unique(res))
The text was updated successfully, but these errors were encountered:
This extends #12. simkernel should supply an individual seed to each run if requested by the user -- by supplying a
seed
argument to the simulation function (for the individual seed) and aseed
argument to the call as the master seed. The library uses the master seed to generate the individual seeds.The text was updated successfully, but these errors were encountered: