Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,5 +119,4 @@ jobs:
run: |
pytest Tests/eval -v \
--ignore=Tests/eval/test_joint_embedding.py \
--deselect Tests/eval/test_eval_stats.py::test_mann_whitney_u_disjoint \
--deselect Tests/eval/test_embedding_space.py::test_cka_independent
10 changes: 8 additions & 2 deletions Tests/eval/test_eval_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,15 @@ def test_cohens_d_large_nondegenerate_effect():


def test_mann_whitney_u_disjoint():
result = mann_whitney_u([1, 2, 3], [10, 11, 12])
# Four per group, not three: with n1 = n2 = 3 the smallest attainable
# two-sided p is 2/20 = 0.1, so no correct implementation can clear 0.05
# there however cleanly the groups separate. At four per group the exact
# minimum is 2/70 = 0.029.
result = mann_whitney_u([1, 2, 3, 4], [10, 11, 12, 13])
assert result["u_statistic"] == 0.0
assert result["p_value"] < 0.05
assert "u_statistic" in result
assert result["n_a"] == 4
assert result["n_b"] == 4


def test_bonferroni_correct():
Expand Down
Loading