tnmf.tests.test_sparsity_inhibition

Test the decomposition on two identical images with different values for sparsity and inhibition and ensure that all backends yield the same reconstruction energy and L0 and L1 norm for the activations H

Module Contents

Functions

test_sparsity(backend: str, params: Dict)

test_inhibition(backend: str, params: Dict)

test_cross_atom_inhibition(backend: str, params: Dict)

Attributes

backends

test_params_sparsity

test_params_inhibition

test_params_cross_atom_inhibition

img

V

tnmf.tests.test_sparsity_inhibition.backends = ['numpy', 'numpy_fft', 'numpy_caching_fft', 'pytorch', 'pytorch_fft']
tnmf.tests.test_sparsity_inhibition.test_params_sparsity
tnmf.tests.test_sparsity_inhibition.test_params_inhibition
tnmf.tests.test_sparsity_inhibition.test_params_cross_atom_inhibition
tnmf.tests.test_sparsity_inhibition.img
tnmf.tests.test_sparsity_inhibition.V
tnmf.tests.test_sparsity_inhibition.test_sparsity(backend: str, params: Dict)
tnmf.tests.test_sparsity_inhibition.test_inhibition(backend: str, params: Dict)
tnmf.tests.test_sparsity_inhibition.test_cross_atom_inhibition(backend: str, params: Dict)