boolean_jaccard’s Test Suite
Tests for boolean_jaccard.
Unit tests for the Jaccard module.
- tests.test_jaccard.test_boot() None
It calculates the Jaccard distance.
- tests.test_jaccard.test_boot_all_ones(caplog: _pytest.capture.CaptureFixture) None
It return a p of 1 if all values are True.
- tests.test_jaccard.test_boot_all_zeros(caplog: _pytest.capture.CaptureFixture) None
It return a p of 1 if all values are False.
- tests.test_jaccard.test_boot_pxpy(caplog: _pytest.capture.CaptureFixture) None
It defers to px/py, when passed.
- tests.test_jaccard.test_dist_pxpy() None
It uses px/py when passed.
- tests.test_jaccard.test_distance() None
It calculates the Jaccard distance.
- tests.test_jaccard.test_sim_2d() None
It raises an index error when input is not 1d.
- tests.test_jaccard.test_sim_bool() None
It raises a TypeError when the dtype is not bool.
- tests.test_jaccard.test_sim_center() None
It centers the similarity, when center is True.
- tests.test_jaccard.test_sim_default() None
It returns the Jaccard similarity.
- tests.test_jaccard.test_sim_nan() None
It returns nan when px + py - (px * py) is 0.
- tests.test_jaccard.test_sim_pxpy() None
It uses px/py when passed.
- tests.test_jaccard.test_sim_shape() None
It raises an index error when input is not the same length.