Skip to content

Commit

Permalink
docs(#949): change note to admonition (#1071)
Browse files Browse the repository at this point in the history
(cherry picked from commit 88e3678)
  • Loading branch information
David Fidalgo authored and frascuchon committed Feb 2, 2022
1 parent 6287400 commit 067fad7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/rubrix/labeling/text_classification/label_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,8 @@ def score(
Returns:
The scores/metrics as a dictionary.
.. note:: Metrics are only calculated over non-abstained predictions!
Raises:
MissingAnnotationError: If the ``weak_labels`` do not contain annotated records.
"""
Expand Down Expand Up @@ -687,6 +689,8 @@ def score(
Returns:
The scores/metrics as a dictionary.
.. note:: Metrics are only calculated over non-abstained predictions!
Raises:
NotFittedError: If the label model was still not fitted.
MissingAnnotationError: If the ``weak_labels`` do not contain annotated records.
Expand Down

0 comments on commit 067fad7

Please sign in to comment.