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

adaptive-machine-learning / CapyMOA / 31173798693
80%

Build:
DEFAULT BRANCH: main
Ran 07 Aug 2026 11:40AM UTC
Jobs 1
Files 186
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

07 Aug 2026 11:22AM UTC coverage: 80.372% (+1.4%) from 78.984%
31173798693

push

github

hmgomes
fix(drift): make ABCD usable without PyTorch, and default to PCA

ABCD reconstructs instances with one of three encoder-decoder models. Only
the autoencoder needs PyTorch; PCAModel and KernelPCAModel use scikit-learn,
which is a core dependency. All three lived in feature_extraction.py, whose
module-level `import torch.nn` forced the whole detector behind the torch
gate, so `pip install capymoa` lost the only multivariate drift detector even
for configurations that never touch PyTorch.

Move AutoEncoder to its own module. It subclasses nn.Module, so the import
cannot be deferred into a method; a separate file is what lets abcd.py load it
lazily, and only when model_id="ae" is actually requested. Asking for that
model without the extra now raises OptionalDependencyError naming the model
rather than the detector, since the other two remain available.

Switch the default from "ae" to "pca" so a plain ABCD() works in a default
install. This changes the model an existing caller gets from the default, and
belongs in the release notes; on the univariate stream in the drift detection
notebook both models behave identically, so its stored output is unchanged.

Also give the unknown-model_id branch a message instead of a bare ValueError.

61 of 65 new or added lines in 4 files covered. (93.85%)

8783 of 10928 relevant lines covered (80.37%)

0.8 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
56.82
21.39% src/capymoa/drift/detectors/abcd.py
1
97.22
src/capymoa/drift/detectors/abcd_components/_autoencoder.py
Jobs
ID Job ID Ran Files Coverage
1 31173798693.1 07 Aug 2026 11:40AM UTC 186
80.37
GitHub Action Run
Source Files on build 31173798693
  • Tree
  • List 186
  • Changed 6
  • Source Changed 4
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #31173798693
  • 476d2d75 on github
  • Prev Build on main (#31171682676)
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