tnmf.tests.test_1d

Test the decomposition on multiple 1D curves and ensure that all backends yield the same factorization.

Module Contents

Functions

fit_nmf(backend, reconstruction_mode)

fixture_expected_factorization(reconstruction_mode)

test_expected_energy(backend: str, reconstruction_mode: str, expected_factorization: Tuple[numpy.ndarray, numpy.ndarray])

Attributes

expected_energies

backends

reconstruction_modes

raise_not_implemented_errors

V

V

tnmf.tests.test_1d.expected_energies
tnmf.tests.test_1d.backends = ['numpy', 'numpy_fft', 'numpy_caching_fft', 'pytorch', 'pytorch_fft']
tnmf.tests.test_1d.reconstruction_modes = ['valid', 'full', 'circular']
tnmf.tests.test_1d.raise_not_implemented_errors = False
tnmf.tests.test_1d.V
tnmf.tests.test_1d.V
tnmf.tests.test_1d.fit_nmf(backend, reconstruction_mode)
tnmf.tests.test_1d.fixture_expected_factorization(reconstruction_mode)
tnmf.tests.test_1d.test_expected_energy(backend: str, reconstruction_mode: str, expected_factorization: Tuple[numpy.ndarray, numpy.ndarray])