• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

yzhao062 / pyod / 35066925458
93%
master: 93%

Build:
Build:
LAST BUILD BRANCH: development
DEFAULT BRANCH: master
Ran 16 Sep 2026 07:28AM UTC
Jobs 11
Files 190
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

16 Sep 2026 07:07AM UTC coverage: 92.618% (+0.008%) from 92.61%
35066925458

push

github

web-flow
Iterate over rows in the unweighted branch of pearsonr_mat (#731)

`pearsonr_mat` builds an `(n_row, n_row)` matrix and fills it pairwise,
but the unweighted branch runs its outer loop over `n_col`:

    if w is not None:
        for cx in range(n_row):
            ...
    else:
        for cx in range(n_col):

The weighted branch directly above uses `n_row`, and the docstring
describes the result as "Row-wise pearson score matrix" of shape
(n_samples, n_samples).

When there are fewer columns than rows, every pair with `cx >= n_col` is
skipped and those cells keep the value the matrix was initialised with,
so the function reports a correlation of exactly 1.0 for pairs it never
looked at. On a (50, 4) matrix, 2070 of 2500 entries are wrong, with
errors up to 2.0.

Output is unchanged whenever `n_col >= n_row - 1`, and the weighted
branch is untouched. `n_col` has no remaining reader, so it goes too.

The existing test uses a (10, 20) matrix, which is in the unaffected
range, and only checks the shape; the added test compares every entry
against `scipy.stats.pearsonr` on an (8, 3) matrix.

10 of 10 new or added lines in 2 files covered. (100.0%)

1 existing line in 1 file now uncovered.

19258 of 20793 relevant lines covered (92.62%)

10.19 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
99.15
0.15% pyod/test/test_loci.py
Jobs
ID Job ID Ran Files Coverage
1 35066925458.1 16 Sep 2026 07:28AM UTC 190
92.62
GitHub Action Run
2 35066925458.2 16 Sep 2026 07:28AM UTC 190
92.62
GitHub Action Run
3 35066925458.3 16 Sep 2026 07:31AM UTC 190
92.61
GitHub Action Run
4 35066925458.4 16 Sep 2026 07:36AM UTC 190
92.62
GitHub Action Run
5 35066925458.5 16 Sep 2026 07:36AM UTC 190
92.61
GitHub Action Run
6 35066925458.6 16 Sep 2026 07:42AM UTC 190
92.62
GitHub Action Run
7 35066925458.7 16 Sep 2026 07:42AM UTC 190
92.61
GitHub Action Run
8 35066925458.8 16 Sep 2026 07:43AM UTC 190
92.62
GitHub Action Run
9 35066925458.9 16 Sep 2026 07:46AM UTC 190
92.62
GitHub Action Run
10 35066925458.10 16 Sep 2026 07:47AM UTC 190
92.62
GitHub Action Run
11 35066925458.11 16 Sep 2026 07:51AM UTC 190
92.62
GitHub Action Run
Source Files on build 35066925458
  • Tree
  • List 190
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 87c9499c on github
  • Prev Build on development (#35061127553)
  • Next Build on development (#35070786573)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc