tests package

Submodules

tests.test_metrics module

class tests.test_metrics.TestCalculatePercentiles(methodName='runTest')[source]

Bases: TestCase

test_edge_case_single_nonzero_probability()[source]
test_mismatched_lengths()[source]
test_probabilities_not_summing_to_one()[source]
test_valid_inputs()[source]
class tests.test_metrics.TestLensaiMetrics(methodName='runTest')[source]

Bases: TestCase

setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_calculate_brightness()[source]
test_calculate_channel_histogram()[source]
test_calculate_channel_mean()[source]
test_calculate_sharpness_laplacian()[source]
test_calculate_snr()[source]
test_process_batch()[source]

tests.test_sketches module

class tests.test_sketches.TestSketches(methodName='runTest')[source]

Bases: TestCase

setUp()[source]

Setup common test data and instances.

tearDown()[source]

Hook method for deconstructing the test fixture after testing it.

test_compute_thresholds()[source]

Test the computation of thresholds.

test_custom_metric_logging()[source]

Test logging a custom metric like embedding vectors.

test_initialization()[source]

Test that the Sketches class initializes correctly.

test_save_and_load_sketches()[source]

Test saving and loading sketches.

test_update_kll_sketch_pytorch()[source]

Test updating KLL sketch with PyTorch tensor data.

test_update_kll_sketch_tensorflow()[source]

Test updating KLL sketch with TensorFlow tensor data.

test_update_sketches_tensorflow()[source]

Test updating all sketches with TensorFlow tensor data.

Module contents