scot.tests package

Subpackages

Submodules

scot.tests.generate_testdata module

scot.tests.generate_testdata.generate_covsig(covmat, n)

generate pseudorandom stochastic signals with covariance matrix covmat

scot.tests.test_connectivity module

class scot.tests.test_connectivity.TestFunctionality(methodName='runTest')

Bases: TestCase

setUp()

Hook method for setting up the test fixture before exercising it.

tearDown()

Hook method for deconstructing the test fixture after testing it.

testClass()
testFunction()
scot.tests.test_connectivity.assert_zerostructure(a, b)

scot.tests.test_csp module

class scot.tests.test_csp.TestDefaults(methodName='runTest')

Bases: TestCase

setUp()

Hook method for setting up the test fixture before exercising it.

tearDown()

Hook method for deconstructing the test fixture after testing it.

testInputSafety()
testInvalidInput()
testInverse()
testOutputSizes()
class scot.tests.test_csp.TestDimensionalityReduction(methodName='runTest')

Bases: TestCase

setUp()

Hook method for setting up the test fixture before exercising it.

tearDown()

Hook method for deconstructing the test fixture after testing it.

testOutput()
testOutputSizes()
testPseudoInverse()
class scot.tests.test_csp.TestFunctionality(methodName='runTest')

Bases: TestCase

setUp()

Hook method for setting up the test fixture before exercising it.

tearDown()

Hook method for deconstructing the test fixture after testing it.

testComponentSeparation()

scot.tests.test_datatools module

class scot.tests.test_datatools.TestDataMangling(methodName='runTest')

Bases: TestCase

setUp()

Hook method for setting up the test fixture before exercising it.

tearDown()

Hook method for deconstructing the test fixture after testing it.

test_acm_1d()

Test autocorrelation matrix for 1D input

test_cat_trials()
test_cut_epochs()
test_dot_special()
class scot.tests.test_datatools.TestRegressions(methodName='runTest')

Bases: TestCase

setUp()

Hook method for setting up the test fixture before exercising it.

tearDown()

Hook method for deconstructing the test fixture after testing it.

test_cat_trials_dimensions()

cat_trials did not always return a 2d array.

scot.tests.test_ooapi module

class scot.tests.test_ooapi.TestMVARICA(methodName='runTest')

Bases: TestCase

setUp()

Hook method for setting up the test fixture before exercising it.

tearDown()

Hook method for deconstructing the test fixture after testing it.

testBackendRegression()

Regression test for Github issue #103.

testExceptions()
testFunctionality()

generate VAR signals, and apply the api to them do this for every backend

testModelIdentification()

generate VAR signals, mix them, and see if MVARICA can reconstruct the signals do this for every backend

testTrivia()
test_plotting()
test_premixing()
test_random_state()
test_source_selection()

scot.tests.test_parallel module

class scot.tests.test_parallel.TestFunctions(methodName='runTest')

Bases: TestCase

setUp()

Hook method for setting up the test fixture before exercising it.

tearDown()

Hook method for deconstructing the test fixture after testing it.

test_output()
test_parallel_loop()
scot.tests.test_parallel.f(x)
scot.tests.test_parallel.g(x, y, z)
scot.tests.test_parallel.h(x)

scot.tests.test_pca module

class scot.tests.test_pca.TestDefaults(methodName='runTest')

Bases: TestCase

setUp()

Hook method for setting up the test fixture before exercising it.

tearDown()

Hook method for deconstructing the test fixture after testing it.

testInputSafety()
testInverse()
testOutputSizes()
class scot.tests.test_pca.TestDimensionalityReduction(methodName='runTest')

Bases: TestCase

setUp()

Hook method for setting up the test fixture before exercising it.

tearDown()

Hook method for deconstructing the test fixture after testing it.

testOutputSizes()
testPseudoInverse()
testSorting()

components should be sorted by decreasing variance

class scot.tests.test_pca.TestFunctionality(methodName='runTest')

Bases: TestCase

setUp()

Hook method for setting up the test fixture before exercising it.

tearDown()

Hook method for deconstructing the test fixture after testing it.

testDecorrelation()

components should be decorrelated after PCA

testIdentity()

identity covariance in -> identity covariance out test for up to 50 dimensions

testSorting()

components should be sorted by decreasing variance

scot.tests.test_plainica module

class scot.tests.test_plainica.TestICA(methodName='runTest')

Bases: TestCase

setUp()

Hook method for setting up the test fixture before exercising it.

tearDown()

Hook method for deconstructing the test fixture after testing it.

testInterface()
testModelIdentification()

generate independent signals, mix them, and see if ICA can reconstruct the mixing matrix do this for every backend

scot.tests.test_plotting module

class scot.tests.test_plotting.TestFunctionality(methodName='runTest')

Bases: TestCase

setUp()

Hook method for setting up the test fixture before exercising it.

tearDown()

Hook method for deconstructing the test fixture after testing it.

test_circular()
test_connectivity_significance()
test_connectivity_spectrum()
test_connectivity_timespectrum()
test_topoplots()
test_whiteness()

scot.tests.test_statistics module

class scot.tests.test_statistics.TestFunctions(methodName='runTest')

Bases: TestCase

static generate_data()
setUp()

Hook method for setting up the test fixture before exercising it.

tearDown()

Hook method for deconstructing the test fixture after testing it.

test_bootstrap()
test_bootstrap_difference_and_fdr()
test_jackknife()
test_surrogate()

scot.tests.test_utils module

class scot.tests.test_utils.TestUtils(methodName='runTest')

Bases: TestCase

setUp()

Hook method for setting up the test fixture before exercising it.

tearDown()

Hook method for deconstructing the test fixture after testing it.

test_cuthill()
test_memoize()

scot.tests.test_var module

class scot.tests.test_var.TestVAR(methodName='runTest')

Bases: TestCase

generate_data(cc=((1, 0), (0, 1)))
setUp()

Hook method for setting up the test fixture before exercising it.

tearDown()

Hook method for deconstructing the test fixture after testing it.

test_abstract()
test_predict()
test_simulate()
test_stable()
test_whiteness()
test_yulewalker()

scot.tests.test_var_builtin module

class scot.tests.test_var_builtin.TestVAR(methodName='runTest')

Bases: TestCase

setUp()

Hook method for setting up the test fixture before exercising it.

tearDown()

Hook method for deconstructing the test fixture after testing it.

test_bisection_invalid()
test_bisection_overdetermined()
test_bisection_underdetermined()
test_fit()
test_fit_regularized()
test_optimize()
test_residuals()

scot.tests.test_var_sklearn module

class scot.tests.test_var_sklearn.CommonTests(methodName='runTest')

Bases: TestCase

setUp()

Hook method for setting up the test fixture before exercising it.

tearDown()

Hook method for deconstructing the test fixture after testing it.

test_fit()
class scot.tests.test_var_sklearn.TestElasticNet(methodName='runTest')

Bases: CommonTests

setUp()

Hook method for setting up the test fixture before exercising it.

class scot.tests.test_var_sklearn.TestLasso(methodName='runTest')

Bases: CommonTests

setUp()

Hook method for setting up the test fixture before exercising it.

class scot.tests.test_var_sklearn.TestLassoLars(methodName='runTest')

Bases: CommonTests

setUp()

Hook method for setting up the test fixture before exercising it.

class scot.tests.test_var_sklearn.TestRidge(methodName='runTest')

Bases: CommonTests

setUp()

Hook method for setting up the test fixture before exercising it.

class scot.tests.test_var_sklearn.TestRidgeCV(methodName='runTest')

Bases: CommonTests

setUp()

Hook method for setting up the test fixture before exercising it.

test_alpha()

This test checks if RidgeCV finds the optimal alpha.

scot.tests.test_varica module

class scot.tests.test_varica.TestCSPVARICA(methodName='runTest')

Bases: TestCase

setUp()

Hook method for setting up the test fixture before exercising it.

tearDown()

Hook method for deconstructing the test fixture after testing it.

testFit()

Test submodel fitting on instationary data

testInterface()
class scot.tests.test_varica.TestMVARICA(methodName='runTest')

Bases: TestCase

setUp()

Hook method for setting up the test fixture before exercising it.

tearDown()

Hook method for deconstructing the test fixture after testing it.

testFit()

Test submodel fitting on instationary data

testInterface()
testModelIdentification()

generate VAR signals, mix them, and see if MVARICA can reconstruct the signals do this for every backend

scot.tests.test_xvschema module

class scot.tests.test_xvschema.TestBuiltin(methodName='runTest')

Bases: TestCase

setUp()

Hook method for setting up the test fixture before exercising it.

tearDown()

Hook method for deconstructing the test fixture after testing it.

test_multitrial()
test_nfold()
test_singletrial()
test_splitset()
class scot.tests.test_xvschema.TestSklearn(methodName='runTest')

Bases: TestCase

setUp()

Hook method for setting up the test fixture before exercising it.

tearDown()

Hook method for deconstructing the test fixture after testing it.

test_application()
test_kfold()
test_leave1out()

Module contents