src.tests.features_downsampling_layer_test

Classes

FeaturesDownsamplingLayerTest()

class src.tests.features_downsampling_layer_test.FeaturesDownsamplingLayerTest
Author:

Alberto M. Esmoris Pena

Features downsampling layer test that checks the operations of a features downsampling layer yield the expected results.

__init__()

Basic configuration for any VL3D test.

Parameters:

name (str) – Test name

run()

Run features downsampling layer test.

Returns:

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

Return type:

bool

validate_mean_downsampling(inputs, nneighs, fdl_mean_out)

Check whether the mean-based downsampling layer yielded the expected output (True) or not (False).

Parameters:
  • inputs – The inputs to the layer.

  • nneighs – The number of encoding neighbors.

  • fdl_mean_out – The output generated by the layer.

Returns:

True if the output is okay, False otherwise.

validate_max_downsampling(inputs, nneighs, fdl_max_out)

Check whether the max-based downsampling layer yielded the expected output (True) or not (False).

Parameters:
  • inputs – The inputs to the layer.

  • nneighs – The number of encoding neighbors.

  • fdl_max_out – The output generated by the layer.

Returns:

True if the output is okay, False otherwise.

validate_gaussian_downsampling(inputs, nneighs, fdl_gauss_out)

Check whether the gaussian-based downsampling layer yielded the expected output (True) or not (False).

Parameters:
  • inputs – The inputs to the layer.

  • nneighs – The number of encoding neighbors.

  • fdl_gaussian_out – The output generated by the layer.

Returns:

True if the output is okay, False otherwise.

validate_exponential_downsampling(inputs, nneighs, fdl_exp_out)

Check whether the exponential-based downsampling layer yielded the expected output (True) or not (False).

Parameters:
  • inputs – The inputs to the layer.

  • nneighs – The number of encoding neighbors.

  • fdl_exp_out – The output generated by the layer.

Returns:

True if the output is okay, False otherwise.

validate_nearest_downsampling(inputs, nneighs, fdl_nearest_out)

Check whether the nearest neighbor downsampling layer yielded the expected output (True) or not (False).

Parameters:
  • inputs – The inputs to the layer.

  • nneighs – The number of encoding neighbors (IGNORED).

  • fdl_nearest_out – The output generated by the layer.

Returns:

True if the output is okay, False otherwise.