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

idanmoradarthas / DataScienceUtils / 21175393653
100%

Build:
DEFAULT BRANCH: master
Ran 20 Jan 2026 02:37PM UTC
Jobs 12
Files 7
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

20 Jan 2026 02:35PM UTC coverage: 99.565% (+0.007%) from 99.558%
21175393653

push

github

web-flow
Add Label Validation to plot_confusion_matrix (#92)

* feat: Add label validation to plot_confusion_matrix

Adds validation to ensure that `y_test`, `y_pred`, and `labels` contain the same set of unique values.

Raises a `ValueError` with a clear error message if there is a mismatch, indicating which values are missing or extra.

Includes a new test function `test_plot_confusion_matrix_label_mismatch` to verify the validation logic.

* refactor: Address feedback from code review

Removes unnecessary `.tolist()` calls in `ds_utils/metrics.py` and fixes the regex pattern in the corresponding test in `tests/test_metrics.py`.

The changes make the code more efficient and the tests more robust.

* docs: Update plot_confusion_matrix docstring

Updates the docstring for the `plot_confusion_matrix` function to describe the new validation behavior and updates the `:raises ValueError:` section accordingly.

---------

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>

12 of 12 new or added lines in 1 file covered. (100.0%)

687 of 690 relevant lines covered (99.57%)

11.95 hits per line

Jobs
ID Job ID Ran Files Coverage
1 windows-latest-python-3.13 - 21175393653.1 20 Jan 2026 03:07PM UTC 7
99.57
GitHub Action Run
2 macos-latest-python-3.11 - 21175393653.2 20 Jan 2026 03:07PM UTC 7
99.57
GitHub Action Run
3 ubuntu-latest-python-3.12 - 21175393653.3 20 Jan 2026 03:07PM UTC 7
99.57
GitHub Action Run
4 ubuntu-latest-python-3.11 - 21175393653.4 20 Jan 2026 03:07PM UTC 7
99.57
GitHub Action Run
5 ubuntu-latest-python-3.10 - 21175393653.5 20 Jan 2026 03:07PM UTC 7
99.57
GitHub Action Run
6 windows-latest-python-3.10 - 21175393653.6 20 Jan 2026 03:07PM UTC 7
99.57
GitHub Action Run
7 macos-latest-python-3.13 - 21175393653.7 20 Jan 2026 03:07PM UTC 7
99.57
GitHub Action Run
8 macos-latest-python-3.12 - 21175393653.8 20 Jan 2026 03:07PM UTC 7
99.57
GitHub Action Run
9 macos-latest-python-3.10 - 21175393653.9 20 Jan 2026 03:07PM UTC 7
99.57
GitHub Action Run
10 ubuntu-latest-python-3.13 - 21175393653.10 20 Jan 2026 03:07PM UTC 7
99.57
GitHub Action Run
11 windows-latest-python-3.12 - 21175393653.11 20 Jan 2026 03:07PM UTC 7
99.57
GitHub Action Run
12 windows-latest-python-3.11 - 21175393653.12 20 Jan 2026 03:07PM UTC 7
99.57
GitHub Action Run
Source Files on build 21175393653
  • Tree
  • List 7
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 8d13ecca on github
  • Prev Build on master (#21175371642)
  • Next Build on master (#21429330775)
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