Home | Trees | Indices | Help |
|
---|
|
1 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- 2 # vi: set ft=python sts=4 ts=4 sw=4 et: 3 ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## 4 # 5 # See COPYING file distributed along with the PyMVPA package for the 6 # copyright and license terms. 7 # 8 ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## 9 """Unit tests for PyMVPA logistic regression classifier""" 10 11 from mvpa.clfs.plr import PLR 12 from tests_warehouse import * 13 141641 4218 data = datasets['dumb2'] 19 20 clf = PLR() 21 22 clf.train(data) 23 24 # prediction has to be perfect 25 self.failUnless((clf.predict(data.samples) == data.labels).all())2644 return unittest.makeSuite(PLRTests)45 46 47 if __name__ == '__main__': 48 import runner 49
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Apr 23 23:09:51 2012 | http://epydoc.sourceforge.net |