src.tests.rbf_feat_extract_layer_test
Classes
- class src.tests.rbf_feat_extract_layer_test.RBFFeatExtractLayerTest
- Author:
Alberto M. Esmoris Pena
Radial basis function feature extraction layer test checks that the operations of a radial basis function feature extraction layer yield the expected results.
- __init__()
Basic configuration for any VL3D test.
- Parameters:
name (str) – Test name
- run()
Run RBF feature extraction layer test.
- Returns:
True if RBFFeatExtractLayer works as expected for the test cases, False otherwise.
- Return type:
bool
- compute_expected_output(X, Q, omega)
Compute the expected output to compare it against what is generated by the RBF feature extraction layer.
- Parameters:
X – The input.
Q – The kernel’s structure.
omega – The kernel’s sizes.
- Returns:
The expected output.
- Return type:
np.ndarray
- validate_output(rfel, expected)
Check whether the RBF feature extraction layer yields the expected results or not.
- Returns:
True if the RBFEL output is not different in more than a given decimal tolerance (eps) wrt the expected output.