Package mvpa :: Package tests :: Module test_regr :: Class RegressionsTests
[hide private]
[frames] | no frames]

Class RegressionsTests

source code


Instance Methods [hide private]
 
testNonRegressions(self, ml)
Test If binary regression-based classifiers have proper tag
source code
 
testRegressions(self, regr)
Simple tests on regressions
source code
 
testRegressionsClassifiers(self, clf)
Simple tests on regressions being used as classifiers
source code
 
testSensitivities(self, regr)
Inspired by a snippet leading to segfault from Daniel Kimberg
source code
Method Details [hide private]

testNonRegressions(self, ml)

source code 
Test If binary regression-based classifiers have proper tag
Decorators:
  • @sweepargs(ml= clfswh ['regression']+ regrswh [:])

testRegressions(self, regr)

source code 
Simple tests on regressions
Decorators:
  • @sweepargs(regr= regrswh ['regression'])

testRegressionsClassifiers(self, clf)

source code 
Simple tests on regressions being used as classifiers
Decorators:
  • @sweepargs(clf= clfswh ['regression'])

testSensitivities(self, regr)

source code 

Inspired by a snippet leading to segfault from Daniel Kimberg

lead to segfaults due to inappropriate access of SVs thinking that it is a classification problem (libsvm keeps SVs at None for those, although reports nr_class to be 2.

Decorators:
  • @sweepargs(regr= regrswh ['regression', 'has_sensitivity'])