Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Commit

Permalink
Fix metric docstring (#5475)
Browse files Browse the repository at this point in the history
* fix docstring

* changelog

* Update allennlp/training/metrics/fbeta_multi_label_measure.py

Co-authored-by: Pete <petew@allenai.org>

Co-authored-by: Pete <petew@allenai.org>
  • Loading branch information
AkshitaB and epwalsh authored Nov 23, 2021
1 parent f86ff9f commit 0a794c6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

### Fixed

- Fixed the docstring information for the `FBetaMultiLabelMeasure` metric.

## [v2.8.0](https://github.com/allenai/allennlp/releases/tag/v2.8.0) - 2021-11-01

### Added
Expand Down
4 changes: 3 additions & 1 deletion allennlp/training/metrics/fbeta_multi_label_measure.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ class FBetaMultiLabelMeasure(FBetaMeasure):
in the data will result in 0 components in a macro or weighted average.
threshold: `float`, optional (default = `0.5`)
Logits over this threshold will be considered predictions for the corresponding class.
Probabilities over this threshold will be considered predictions for the corresponding class.
Note that you can also use this metric with logits, in which case it would make more sense to set
the `threshold` value to `0.0`.
"""

Expand Down

0 comments on commit 0a794c6

Please sign in to comment.