src.tests.prediction_reducer_test
Classes
- class src.tests.prediction_reducer_test.PredictionReducerTest
- Author:
Alberto M. Esmoris Pena
Prediction reducer test that checks the different strategies work correctly.
- __init__()
Basic configuration for any VL3D test.
- Parameters:
name (str) – Test name
- run()
Run prediction reducer test
- Returns:
True if PredictionReducer works as expected for the test cases, False otherwise.
- Return type:
bool
- check_pr(pr, num_points, num_vals, Z, I, Z_ref, Y_ref)
Check that the prediction reducer yields the expected output.
- Parameters:
pr – The prediction reducer itself.
num_points – The number of output points.
num_vals – The number of point-wise variables.
Z – The input values.
I – The input neighborhoods.
Z_ref – The expected reduced values.
Y_ref – The expected selected values.
- Returns:
True if the output is as expected, False otherwise.