src.tests.fps_pre_processing_test
Classes
- class src.tests.fps_pre_processing_test.FPSPreProcessingTest
- Author:
Alberto M. Esmoris Pena
FPS pre-processing test that checks the FPS-based preprocessing of a point cloud is correct, especially regarding feature and label encoding.
- __init__()
Basic configuration for any VL3D test.
- Parameters:
name (str) – Test name
- run()
Run FPS pre-processing test.
- Returns:
True if the FPS pre-processor works as expected for the test cases, False otherwise.
- Rtype bool:
- testFPSPreProc(X, F, y, neighborhood, fps_pre_proc, unit_sphere=False)
Check whether the given FPS pre-processor is correct.
- Parameters:
X (
np.ndarray) – The test structure space.y (
np.ndarray) – The test labels.neighborhood (dict) – The neighborhood specification.
fps_pre_proc (dict) – The FPS pre-processor specification.
unit_sphere (bool) – Flag governing whether the structure space of the receptive fields must be checked to fit a unit sphere (True) or not (False).