src.tests.rbf_feat_processing_layer_test

Classes

RBFFeatProcessingLayerTest()

class src.tests.rbf_feat_processing_layer_test.RBFFeatProcessingLayerTest
Author:

Alberto M. Esmoris Pena

Radial basis function feature processing layer test checks that the operations of a radial basis function feature processing layer yield the expected results.

__init__()

Basic configuration for any VL3D test.

Parameters:

name (str) – Test name

run()

Run RBF feature processing test.

Returns:

True if RBFFeatProcessingLayer works as expected for the test cases, False otherwise.

Return type:

bool

compute_expected_output(F, M, Omega)

Compute the expected output to compare it against what is generated by the RBF feature processing layer.

Parameters:
  • F – The input.

  • M – The kernel’s centers.

  • Omega – The kernel’s sizes.

Returns:

The expected output.

Return type:

np.ndarray

validate_output(rfpl, expected)

Check whether the RBF feature processing layer yields the expected results or not.

Returns:

TRUE if the RBFPL output is not different in more than a given decimal tolerance (eps) wrt the expected output.