src.tests.features_structuring_layer_test
Classes
- class src.tests.features_structuring_layer_test.FeaturesStructuringLayerTest
- Author:
Alberto M. Esmoris Pena
Features structuring layer test that checks the operations of a features structuring layer yield the expected results.
- __init__()
Basic configuration for any VL3D test.
- Parameters:
name (str) – Test name
- run()
Run features structuring layer test.
- Returns:
True if
FeaturesStructuringLayerworks as expected for the test cases, False otherwise.- Return type:
bool
- compute_expected_output(X, F, omegaF, omegaD, QX, QW, m, nf, K)
Compute the expected output to compare it against what is generated by the features structuring layer.
- Returns:
The expected output.
- Return type:
np.ndarray
- tf_compute_output(X, F, omegaF, omegaD, QX, QW)
The tensorflow operations defining the layer but outside the layer.
- Returns:
The structured features.
- validate_output(fsl, expected)
Check whether the feature structuring layer yields the expected results or not.
- Returns:
True if the FSL output is not different in more than a given decimal tolerance (eps) wrt the expected output.