fix regression in quasirandom from swapping arguments

This commit is contained in:
Connor Olding 2023-05-08 01:59:08 -07:00
parent 1a493c30eb
commit 1072f3d147

View file

@ -21,7 +21,7 @@ def quasirandom_cube(objective, size, budget):
alpha = np.zeros(size)
for i in range(size):
alpha[i] = pow(1 / magic, i + 1) % 1
xs = np.zeros((size, budget))
xs = np.zeros((budget, size))
xs[0, :] = 0.5 # first point is always dead center
for i in range(1, budget):
xs[i] = (xs[i - 1] + alpha) % 1