src.tests.vl3dpp_support_neighborhoods_test
Classes
- class src.tests.vl3dpp_support_neighborhoods_test.VL3DPPSupportNeighborhoodsTest
- Author:
Alberto M. Esmoris Pena
Deep learning pre-processor tests that checks the C++ implementation of the support neighborhood-generation algorithms.
- __init__()
Basic configuration for any VL3D test.
- Parameters:
name (str) – Test name
- run()
Run C++ support neighborhoods test.
- Returns:
True if the C++ support neighborhoods are generated as expected for the test cases, False otherwise.
- Return type:
bool
- testSupport(neigh_spec, sup_spec, X, y)
Check that the C++ support neighborhoods work as the python reference support neighborhoods in the general case.
- Parameters:
neigh_spec (dict) – The neighborhood specification.
sup_spec (dict) – The support specification.
- Returns:
True if the C++ support neighborhoods match the Python-side support neighborhoods.
- Return type:
bool
- testSupportByDistr(neigh_spec, sup_spec, X, y)
Check that the C++ support neighborhoods work as the python reference support neighborhoods for the training class distribution strategy.
- Parameters:
neigh_spec (dict) – The neighborhood specification.
sup_spec (dict) – The support specification.
- Returns:
True if the C++ support neighborhoods match the Python-side support neighborhoods.
- Return type:
bool
- testSupportByFPS(neigh_spec, sup_spec, X, y)
Check that the C++ support neighborhoods work as the python reference support neighborhoods for the furthest point subsampling (FPS) strategy.
- Parameters:
neigh_spec (dict) – The neighborhood specification.
sup_spec (dict) – The support specification.
- Returns:
True if the C++ support neighborhoods match the Python-side support neighborhoods.
- Return type:
bool