hyperspy.tests.mva package

Submodules

hyperspy.tests.mva.test_bss module

class hyperspy.tests.mva.test_bss.TestBSS1D

Bases: object

setup_method(method)
test_mask_diff_order_0()
test_mask_diff_order_0_on_loadings()
test_mask_diff_order_1()
test_mask_diff_order_1_on_loadings()
test_on_loadings()
class hyperspy.tests.mva.test_bss.TestBSS2D

Bases: object

setup_method(method)
test_diff_axes_string_with_mask()
test_diff_axes_string_without_mask()
test_diff_axes_without_mask()
test_mask_diff_order_0()
test_mask_diff_order_0_on_loadings()
test_mask_diff_order_1()
test_mask_diff_order_1_diff_axes()
test_mask_diff_order_1_on_loadings()
test_mask_diff_order_1_on_loadings_diff_axes()
test_on_loadings()
hyperspy.tests.mva.test_bss.are_bss_components_equivalent(c1_list, c2_list, atol=0.0001)

Check if two list of components are equivalent.

To be equivalent they must differ by a max of atol except for an arbitraty -1 factor.

Parameters:
  • c2_list (c1_list,) – The components to check.
  • atol (float) – Absolute tolerance for the amount that they can differ.
Returns:

Return type:

bool

hyperspy.tests.mva.test_decomposition module

class hyperspy.tests.mva.test_decomposition.TestGetExplainedVarinaceRatio

Bases: object

setup_method(method)
test_data()
test_no_evr()
class hyperspy.tests.mva.test_decomposition.TestGetModel

Bases: object

lazify(**kwargs)
setup_method(method)
test_get_bss_model()
test_get_decomposition_model()
test_lazy_get_bss_model()
test_lazy_get_decomposition_model()
class hyperspy.tests.mva.test_decomposition.TestNdAxes

Bases: object

setup_method(method)
test_consistency()
test_consistency_poissonian()
class hyperspy.tests.mva.test_decomposition.TestNormalizeComponents

Bases: object

setup_method(method)
test_normalize_bss_factors()
test_normalize_bss_loadings()
test_normalize_decomposition_factors()
test_normalize_decomposition_loadings()
class hyperspy.tests.mva.test_decomposition.TestReturnInfo

Bases: object

setup_method(method)
test_decomposition_not_supported()
test_decomposition_supported_return_false()
test_decomposition_supported_return_true()
class hyperspy.tests.mva.test_decomposition.TestReverseDecompositionComponent

Bases: object

setup_method(method)
test_reversal_factors_multiple_components_not_reversed()
test_reversal_factors_multiple_components_reversed()
test_reversal_factors_one_component_not_reversed()
test_reversal_factors_one_component_reversed()
test_reversal_loadings_multiple_components_not_reversed()
test_reversal_loadings_multiple_components_reversed()
test_reversal_loadings_one_component_not_reversed()
test_reversal_loadings_one_component_reversed()

hyperspy.tests.mva.test_export module

class hyperspy.tests.mva.test_export.TestMVAExport

Bases: object

setup_method(method)
test_get_bss_factor()
test_get_bss_loadings()

hyperspy.tests.mva.test_onmf module

hyperspy.tests.mva.test_onmf.compare(a, b)
hyperspy.tests.mva.test_onmf.test_corrupted_default()
hyperspy.tests.mva.test_onmf.test_corrupted_robust()
hyperspy.tests.mva.test_onmf.test_default()
hyperspy.tests.mva.test_onmf.test_robust()

hyperspy.tests.mva.test_rpca module

class hyperspy.tests.mva.test_rpca.TestORPCA

Bases: object

setup_method(method)
test_default()
test_fast()
test_init()
test_method_BCD()
test_method_MomentumSGD()
test_method_SGD()
test_regularization()
test_training()
class hyperspy.tests.mva.test_rpca.TestRPCA

Bases: object

setup_method(method)
test_default()
test_iter()
test_power()
test_regularization()
test_tol()

Module contents