aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGertjan van den Burg <gertjanvandenburg@gmail.com>2019-03-06 19:15:18 -0500
committerGertjan van den Burg <gertjanvandenburg@gmail.com>2019-03-06 19:15:18 -0500
commit4efec8aa479be05cd548f91458ac26a4ecff34f2 (patch)
treeb61719ea7ac3bb8c6ca5c7aa242d00e0afb07d94 /test
parentCheck to make sure predict arrays are contiguous (diff)
downloadpygensvm-4efec8aa479be05cd548f91458ac26a4ecff34f2.tar.gz
pygensvm-4efec8aa479be05cd548f91458ac26a4ecff34f2.zip
Bugfix and test for predict method of GridSearch
Diffstat (limited to 'test')
-rw-r--r--test/test_gridsearch.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test_gridsearch.py b/test/test_gridsearch.py
index 1a29b0a..f4cff7e 100644
--- a/test/test_gridsearch.py
+++ b/test/test_gridsearch.py
@@ -172,6 +172,9 @@ class GenSVMGridSearchCVTestCase(unittest.TestCase):
self.assertTrue(hasattr(clf, "best_params_"))
+ y_pred = clf.predict(X_test, trainX=X_train)
+ del y_pred
+
def test_invalid_y(self):
""" GENSVM_GRID: Check raises for invalid y type """
pg = {"lmd": [1e-4, 100, 10000], "kernel": ["rbf"]}