From 011e0c21df1ce06ae74e954ca554a78de8298f90 Mon Sep 17 00:00:00 2001 From: dubourg <dubourg@PTlami14.(none)> Date: Sat, 13 Nov 2010 23:30:35 +0100 Subject: [PATCH] Correction of a bug in test_gpml.py (now runs perfect on my machine!). I just don't know how to involve this test within the whole scikit testing procedure (nosetests). Also add a modification of the TOC in doc. --- doc/supervised_learning.rst | 1 + scikits/learn/tests/test_gpml.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/supervised_learning.rst b/doc/supervised_learning.rst index 4c96d82bcf..55bcc6f12f 100644 --- a/doc/supervised_learning.rst +++ b/doc/supervised_learning.rst @@ -32,6 +32,7 @@ Supervised learning modules/logistic modules/ann modules/feature_selection + modules/gpml diff --git a/scikits/learn/tests/test_gpml.py b/scikits/learn/tests/test_gpml.py index 15453dd8ee..7327f81f52 100644 --- a/scikits/learn/tests/test_gpml.py +++ b/scikits/learn/tests/test_gpml.py @@ -45,5 +45,6 @@ def test_regression_diabetes(): gpm.thetaL, gpm.thetaU = None, None score_func = lambda self, X_test, y_test: self.predict(X_test)[0] y_pred = cross_val.cross_val_score(gpm, X, y=y, score_func=score_func, cv=cross_val.LeaveOneOut(y.size), n_jobs=1, verbose=0) + Q2 = metrics.explained_variance(y_pred, y) - assert Q2 > 0. \ No newline at end of file + assert Q2 > 0. -- GitLab