From 1072f3d1472ddcb2886e72b60355904c4311a86d Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Mon, 8 May 2023 01:59:08 -0700 Subject: [PATCH] fix regression in quasirandom from swapping arguments --- thursday/candidates/random.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thursday/candidates/random.py b/thursday/candidates/random.py index a70ff08..5f407f1 100644 --- a/thursday/candidates/random.py +++ b/thursday/candidates/random.py @@ -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