public class NMFactorizationTest extends UnitTest
| Constructor and Description |
|---|
NMFactorizationTest() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args) |
void |
test() |
void |
testErrorHandling()
Tests error handling for improper arguments and state.
|
void |
testExactRecovery()
Tests that an exactly factorable matrix is recovered, both in terms of
its residual and of the factors themselves.
|
void |
testGeneralFactorization()
Tests the factorization of matrices which are not exactly factorable,
checking non-negativity of the factors and consistency of the reported
residual and VAF with values computed directly from the factors.
|
void |
testInitializationAndRestarts()
Tests random initialization and restarts.
|
void |
testMonotonicity()
Tests that the residual decreases monotonically with the number of
iterations, as it must for the exact block coordinate descent performed
by the ANLS update.
|
void |
testMultiplicativeUpdate()
Tests the multiplicative update.
|
void |
testOrderingAndNormalization()
Tests factor ordering and normalization.
|
void |
testRegularization()
Tests that regularization is applied and does not break non-negativity.
|
void |
testVAFs()
Tests the VAF sweep used to select the number of factors.
|
check, checkEquals, checkEquals, checkEquals, checkEquals, checkEquals, checkEquals, checkEquals, checkEquals, checkEquals, checkEquals, checkNormedEquals, checkNormedEquals, getSilent, printUsageAndExit, runtest, setSilentpublic void testExactRecovery()
public void testGeneralFactorization()
public void testMonotonicity()
public void testMultiplicativeUpdate()
public void testRegularization()
public void testOrderingAndNormalization()
public void testInitializationAndRestarts()
public void testVAFs()
public void testErrorHandling()
public static void main(java.lang.String[] args)