Skip to content

Label multi-class classifier mode as a preview feature#388

Open
gbeane wants to merge 1 commit into
feature/multiclassfrom
feature/multiclass-preview-label
Open

Label multi-class classifier mode as a preview feature#388
gbeane wants to merge 1 commit into
feature/multiclassfrom
feature/multiclass-preview-label

Conversation

@gbeane
Copy link
Copy Markdown
Collaborator

@gbeane gbeane commented Jun 1, 2026

Summary

Marks multi-class classifier mode as a preview/beta feature in the UI, the one hard blocker for merging multi-class into main as a preview while remaining work continues in follow-up releases.

Changes

  • classifier_mode_settings_group.py:
    • Combo option relabeled "Multi-class""Multi-class (Preview)".
    • Help text gains a Preview feature paragraph noting the mode is under active development, that some capabilities are not yet available (prediction post-processing is not applied to multi-class predictions), and that its behavior, stored data, and settings may change in upcoming releases.
  • The combo stores the ClassifierMode enum as item data (the string is display-only), so the relabel does not affect persistence — get_values/set_values still bind to the enum.

Tests

  • Added test_classifier_mode_group_roundtrips_enum_not_label, confirming set/get round-trip on the ClassifierMode value independent of the display label (guards against the relabel breaking data binding).

3 settings-dialog tests pass; ruff clean.

Notes

Default mode remains BINARY; binary projects are unaffected. This is part of the multi-class beta-readiness work — the section 10 latent-bug fixes (PRs #385, #386, and fix/multiclass-save-predictions-shape) should also land on feature/multiclass before it is merged to main.

@gbeane gbeane requested review from bergsalex, Copilot and keithshep and removed request for Copilot June 1, 2026 19:53
@gbeane gbeane self-assigned this Jun 1, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Marks the multi-class classifier mode as a preview feature in the settings UI, while ensuring the underlying persisted value remains the ClassifierMode enum (not the display label).

Changes:

  • Relabeled the multi-class option to “Multi-class (Preview)” and added preview/beta caveats to the help text.
  • Ensured the mode combo box stores the ClassifierMode enum as item data (label is display-only).
  • Added a UI test that guards enum-based round-tripping independent of the label text.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/jabs/ui/settings_dialog/classifier_mode_settings_group.py Updates the multi-class label and adds preview-feature messaging in the help documentation while keeping enum-backed combo data.
tests/ui/test_settings_dialog.py Adds a regression test to confirm set_values/get_values round-trip the ClassifierMode value (not the label).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants