h0rton.tests.test_trainval_data.test_xy_data

Module Contents

Classes

TestXYData A suite of tests on data preprocessing
class h0rton.tests.test_trainval_data.test_xy_data.TestXYData(methodName='runTest')[source]

Bases: unittest.TestCase

A suite of tests on data preprocessing

classmethod setUpClass(cls)[source]

Hook method for setting up class fixture before running tests in the class.

classmethod tearDownClass(cls)[source]

Remove the toy data

test_X_identity(self)[source]

Test if the input iamge equals the dataset image, when nothing is done to the image at all

test_X_transformation_log(self)[source]

Test if the images transform as expected, with log(1+X)

test_X_transformation_rescale(self)[source]

Test if the images transform as expected, with whitening

test_X_transformation_log_rescale(self)[source]

Test if the images transform as expected, with log(1+X) and whitening

test_X_exposure_time_factor(self)[source]

Test if the images scale by the new effective exposure time correctly

test_Y_transformation_(self)[source]

Test if the target Y whitens correctly

test_train_vs_val(self)[source]

Test if the images and metadata are loaded from the correct folder (train/val)

test_tensor_type(self)[source]

Test if X, Y are of the configured data type