Skip to content

Commit

Permalink
make sliding window test more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
kdutia committed Jul 18, 2024
1 parent 2707519 commit 87d8145
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/test/test_ml.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,7 @@ def test_encoder_sliding_window():
assert isinstance(embeddings, np.ndarray)
assert embeddings.shape[0] == len(batch_to_encode)
assert embeddings.shape[1] == encoder.dimension

assert np.array_equal(embeddings[0, :], embeddings[2, :])
assert np.array_equal(embeddings[0, :], embeddings[3, :])
assert not np.array_equal(embeddings[0, :], embeddings[1, :])

0 comments on commit 87d8145

Please sign in to comment.