MCPcopy Create free account
hub / github.com/DevTechJr/turboquant_cutile / test_boundaries_between_centroids

Function test_boundaries_between_centroids

tests/test_codebook.py:50–53  ·  view source on GitHub ↗
(bits)

Source from the content-addressed store, hash-verified

48
49@pytest.mark.parametrize("bits", [1, 2, 3, 4])
50def test_boundaries_between_centroids(bits):
51 cb = LloydMaxCodebook(128, bits)
52 for i in range(len(cb.boundaries)):
53 assert cb.centroids[i] < cb.boundaries[i] < cb.centroids[i + 1]
54
55
56@pytest.mark.parametrize("bits", [1, 2, 3, 4])

Callers

nothing calls this directly

Calls 1

LloydMaxCodebookClass · 0.90

Tested by

no test coverage detected