Skip to content

Commit 0f13544

Browse files
bwadaclaude
andcommitted
docs: unify "belong to" for class membership across docs and docstring
The markdown said "each image should match exactly one" and the docstring said "each image should fit exactly one" for the same idea. A reader crossing between the docs site and the SDK reference would see drift. Standardize on "belong to" — the precise class-membership term in ML literature. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 2cbdbe0 commit 0f13544

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

docs/docs/answer-modes/2-multi-choice-detectors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ detector = gl_exp.create_multiclass_detector(
1717
```
1818

1919
:::caution Use non-overlapping classes
20-
Multi-class detectors are designed for **mutually exclusive** classes — each image should match exactly one. They always return a single label and are **not** multi-label classifiers.
20+
Multi-class detectors are designed for **mutually exclusive** classes — each image should belong to exactly one. They always return a single label and are **not** multi-label classifiers.
2121

2222
A quick test: if your question is *"Which one of these is it?"*, a multi-class detector fits. If it's *"Which of these are present?"* — meaning more than one could be true at once — create a separate detector for each question you want to answer instead.
2323
:::

src/groundlight/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1680,7 +1680,7 @@ def create_multiclass_detector( # noqa: PLR0913 # pylint: disable=too-many-argu
16801680
16811681
A multiclass detector returns exactly one label per image, chosen from
16821682
``class_names``. It is designed for **mutually exclusive
1683-
(non-overlapping)** classes — each image should fit exactly one.
1683+
(non-overlapping)** classes — each image should belong to exactly one.
16841684
Multi-class detectors are **not** multi-label classifiers; if your
16851685
classes can co-occur in the same image (e.g. an image can contain both
16861686
a person and a dog), create a separate detector for each question you

0 commit comments

Comments
 (0)