diff --git a/adaptive/tests/test_learners.py b/adaptive/tests/test_learners.py index 7067ea133..2fd477512 100644 --- a/adaptive/tests/test_learners.py +++ b/adaptive/tests/test_learners.py @@ -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)