From d4af72cc5b125979bc97e6cd474ba41e08913042 Mon Sep 17 00:00:00 2001 From: hasan-yaman Date: Mon, 30 May 2022 00:00:14 +0300 Subject: [PATCH] Ensures that fbeta_score passes numpydoc validation --- sklearn/metrics/_classification.py | 5 ++++- sklearn/tests/test_docstrings.py | 1 - 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/sklearn/metrics/_classification.py b/sklearn/metrics/_classification.py index cbab74c0fe594..a1fb638bb29db 100644 --- a/sklearn/metrics/_classification.py +++ b/sklearn/metrics/_classification.py @@ -1235,7 +1235,10 @@ def fbeta_score( See Also -------- - precision_recall_fscore_support, multilabel_confusion_matrix + precision_recall_fscore_support : Compute the precision, recall, F-score, + and support. + multilabel_confusion_matrix : Compute a confusion matrix for each class or + sample. Notes ----- diff --git a/sklearn/tests/test_docstrings.py b/sklearn/tests/test_docstrings.py index e3e8ed2aff091..d1cba95083e73 100644 --- a/sklearn/tests/test_docstrings.py +++ b/sklearn/tests/test_docstrings.py @@ -34,7 +34,6 @@ "sklearn.manifold._t_sne.trustworthiness", "sklearn.metrics._classification.brier_score_loss", "sklearn.metrics._classification.cohen_kappa_score", - "sklearn.metrics._classification.fbeta_score", "sklearn.metrics._classification.jaccard_score", "sklearn.metrics._classification.log_loss", "sklearn.metrics._plot.det_curve.plot_det_curve",