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
defget_sequence_using_scipy(n_samples, d):
fromscipy.stats.qmcimportSobolsupport_generator=Sobol(d, scramble=False, seed=None).reset()
# The first value is remove because it's 0support=support_generator.random(n=n_samples+1).flatten()[1:]
returnsupport
The text was updated successfully, but these errors were encountered:
from scipy.stats.qmc import Sobol
def get_sequence_using_scipy(n_samples, d):
support_generator = Sobol(d, scramble=False, seed=None).reset()
# The first value is removed because it's 0
return support_generator.random(n=n_samples+1).flatten()[1:]
For those looking to upgrade the function to a maintained package:
is equivalent to
The text was updated successfully, but these errors were encountered: