Browse code

take fewer points to speed up the test for the LearnerND

Bas Nijholt authored on 09/12/2018 15:26:07 • Joseph Weston committed on 17/12/2018 15:40:33
Showing 1 changed files
... ...
@@ -390,6 +390,10 @@ def test_learner_performance_is_invariant_under_scaling(learner_type, f, learner
390 390
 
391 391
     npoints = random.randrange(300, 500)
392 392
 
393
+    if learner_type is LearnerND:
394
+        # Because the LearnerND is slow
395
+        npoints //= 10
396
+
393 397
     for n in range(npoints):
394 398
         cxs, _ = control.ask(1)
395 399
         xs, _ = learner.ask(1)