From b06b4ea8f1c8793540bec7d68340310489afdadd Mon Sep 17 00:00:00 2001 From: Alan Saul Date: Mon, 11 Mar 2013 18:25:11 +0000 Subject: [PATCH] Fixed checkgrad test to randomize before checking --- GPy/testing/examples_tests.py | 1 + 1 file changed, 1 insertion(+) diff --git a/GPy/testing/examples_tests.py b/GPy/testing/examples_tests.py index 141d3999..feba2b50 100644 --- a/GPy/testing/examples_tests.py +++ b/GPy/testing/examples_tests.py @@ -30,6 +30,7 @@ def checkgrads_generator(model): """ def model_checkgrads(model): + model.randomize() assert model.checkgrad()