Skip to content

Commit

Permalink
Fix typos and docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
fcogidi committed Dec 19, 2023
1 parent 5f32388 commit 7742ecf
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def multilabel_specificity(
average: Optional[Literal["micro", "macro", "weighted", "none"]] = "macro",
ignore_index: Optional[int] = None,
) -> Array:
"""Measure the proportion of positive predictions that are true positive.
"""Measure how well a classifier identifies negative samples.
Parameters
----------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


class BinaryNPV(_AbstractBinaryStatScores, registry_key="binary_npv"):
"""The proportion of predictive negatives that are true negatives.
"""The proportion of negative predictions that are true negatives.
Parameters
----------
Expand Down Expand Up @@ -54,7 +54,7 @@ class MulticlassNPV(
_AbstractMulticlassStatScores,
registry_key="multiclass_npv",
):
"""The proportion of predictive negatives that are true negatives.
"""The proportion of negative predictions that are true negatives.
Parameters
----------
Expand Down Expand Up @@ -122,7 +122,7 @@ class MultilabelNPV(
_AbstractMultilabelStatScores,
registry_key="multilabel_npv",
):
"""The proportion of actual negatives that are correctly identified.
"""The proportion of negative predictions that are true negatives.
Parameters
----------
Expand Down
2 changes: 1 addition & 1 deletion cyclops/evaluate/metrics/f_beta.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ class MultilabelFbetaScore(MultilabelStatScores, registry_key="multilabel_fbeta_
num_labels : int
Number of labels for the task.
threshold : float, default=0.5
Threshold for deciding the positive class if predicitions are logits
Threshold for deciding the positive class if predictions are logits
or probability scores. Logits will be converted to probabilities using
the sigmoid function.
top_k : int, optional
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Test specificity recall metrics."""
"""Test specificity."""
from functools import partial
from typing import Literal, Optional

Expand Down

0 comments on commit 7742ecf

Please sign in to comment.