Skip to content

Commit

Permalink
take fewer points to speed up the test for the LearnerND
Browse files Browse the repository at this point in the history
  • Loading branch information
basnijholt authored and jbweston committed Dec 17, 2018
1 parent 3c90103 commit 21a836e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions adaptive/tests/test_learners.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,10 @@ def test_learner_performance_is_invariant_under_scaling(learner_type, f, learner

npoints = random.randrange(300, 500)

if learner_type is LearnerND:
# Because the LearnerND is slow
npoints //= 10

for n in range(npoints):
cxs, _ = control.ask(1)
xs, _ = learner.ask(1)
Expand Down

0 comments on commit 21a836e

Please sign in to comment.