fix regression in quasirandom from swapping arguments
This commit is contained in:
parent
1a493c30eb
commit
1072f3d147
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue