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

yzhao062 / pyod / 23972073553
94%
master: 94%

Build:
Build:
LAST BUILD BRANCH: development
DEFAULT BRANCH: master
Ran 04 Apr 2026 05:37AM UTC
Jobs 11
Files 116
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

04 Apr 2026 05:15AM UTC coverage: 93.926% (+0.01%) from 93.913%
23972073553

push

github

yzhao062
Fix CD detector train-test split: reuse fitted models at prediction time (#624)

decision_function() previously re-fitted the regression model on test
data instead of using models trained during fit(). This patch stores
per-feature fitted models and reuses them at prediction time.

Additional fixes:
- Fix broken NaN check: (mse != 0) or (mse != np.nan) was always True;
  replaced with (mse != 0) and not np.isnan(mse)
- Use sklearn.base.clone instead of deepcopy for model copying
- Fix mutable default argument model=LinearRegression() in __init__
- Add check_is_fitted guard for _models attribute
- Update docstrings to reflect sklearn clone contract

Tests added:
- Sentinel-based test proving decision_function does not refit
- sklearn.base.clone compatibility test with non-picklable estimator

Based on the idea from PR #624 by Daniel Kulik (@KulikDM), with
corrections applied during code review.

51 of 52 new or added lines in 2 files covered. (98.08%)

10779 of 11476 relevant lines covered (93.93%)

10.33 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
98.2
-0.45% pyod/test/test_cd.py
Jobs
ID Job ID Ran Files Coverage
1 23972073553.1 04 Apr 2026 05:37AM UTC 116
93.93
GitHub Action Run
2 23972073553.2 04 Apr 2026 05:38AM UTC 116
93.93
GitHub Action Run
3 23972073553.3 04 Apr 2026 05:39AM UTC 116
93.92
GitHub Action Run
4 23972073553.4 04 Apr 2026 05:39AM UTC 116
93.93
GitHub Action Run
5 23972073553.5 04 Apr 2026 05:44AM UTC 116
93.93
GitHub Action Run
6 23972073553.6 04 Apr 2026 05:44AM UTC 116
93.93
GitHub Action Run
7 23972073553.7 04 Apr 2026 05:44AM UTC 116
93.92
GitHub Action Run
8 23972073553.8 04 Apr 2026 05:45AM UTC 116
93.93
GitHub Action Run
9 23972073553.9 04 Apr 2026 05:52AM UTC 116
93.93
GitHub Action Run
10 23972073553.10 04 Apr 2026 05:52AM UTC 116
93.93
GitHub Action Run
11 23972073553.11 04 Apr 2026 11:01AM UTC 116
93.92
GitHub Action Run
Source Files on build 23972073553
  • Tree
  • List 116
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 27d69cb8 on github
  • Prev Build on development (#23970986130)
  • Next Build on development (#23973126519)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc