No tests for Holm tie handling or an empty set of tested pairs in the proxy correction
Maintainers usually reply within 1 day
A pull request for this has already been merged.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 82/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- javascript, python
- Domain
- machine-learning, testing
Research direction
Start with tests/test_proxy.py and tests/test_js_parity.py, then inspect adjust_p_values and adjustPValues to understand the existing test setup. Add cases for tied p-values, one tested pair (m=1), and no testable pairs (m=0), including a Node-side parity check. Done when both implementations return matching expected arrays for these edge cases.
Written by the indexing model from the issue text.
Description
Where: tests/test_proxy.py, tests/test_js_parity.py (adjust_p_values / adjustPValues).
Current gap: The #806 tests cover a hand-computed Holm example and a three-dimension frame, but not ties (two identical p-values, where Python's stable sort and the JS comparator must break ties identically), a single tested pair (m=1: adjusted equals raw), or zero testable pairs (all constant columns).
Repro:
$ grep -n "tie\|m == 1\|empty" tests/test_proxy.py
(no matches)
Suggested approach: parameterised cases for ties, m=1 and m=0 in Python, plus a node-side check that the JS function returns the same arrays.
- Dominant language
- HTML
- Stars
- 47
- Forks
- 45
- Avg merge
- 2h 36m
- Merged PRs (30d)
- 90
Getting set up
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from yakew7/Fair-Code
-
bug help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
bug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
Maintainers usually reply within 1 day
-
bug good first issue
Difficulty 1/5 Under an hour Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
JS profiler drops a quoted-empty row in a single-column CSV; pandas keeps it as a missing valueOpenbug help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
bug help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
All issues in yakew7/Fair-Code
Similar issues
-
bot-triaged module: correctness (silent) module: distributions release triage triage review
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
pytorch/pytorch#200016 · 1 comment ·
Maintainers usually reply within 1 day
-
Negation with "not" and "no" is ignored during sentiment analysisPossibly taken @vivek-3728 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
techcsispit/mess-mood#11 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
[PyTorch] fp8_cs_quantize fake implementation returns a vector inverse scale instead of a scalarOpen
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
NVIDIA/TransformerEngine#3636 ·
Maintainers usually reply within 2 days