Skip to content

Commit

Permalink
fix test_squiggle_int
Browse files Browse the repository at this point in the history
  • Loading branch information
dannygoldstein committed Oct 27, 2021
1 parent ed2b882 commit 3d4aa22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sweeps/bayes_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ def random_sample(X_bounds: ArrayLike, num_test_samples: integer) -> ArrayLike:
test_X = np.empty((int(num_test_samples), num_hyperparameters))
for ii in range(num_test_samples):
for jj in range(num_hyperparameters):
if type(X_bounds[jj][0]) == int:
assert type(X_bounds[jj][1]) == int
if type(X_bounds[jj][0].tolist()) == int:
assert type(X_bounds[jj][1].tolist()) == int
test_X[ii, jj] = np.random.randint(X_bounds[jj][0], X_bounds[jj][1])
else:
test_X[ii, jj] = (
Expand Down

0 comments on commit 3d4aa22

Please sign in to comment.