diff --git a/sklearn/metrics/classification.py b/sklearn/metrics/classification.py index d1337bdc61aed..8a5c034786076 100644 --- a/sklearn/metrics/classification.py +++ b/sklearn/metrics/classification.py @@ -1066,7 +1066,7 @@ def fbeta_score(y_true, y_pred, beta, labels=None, pos_label=1, The F-beta score is the weighted harmonic mean of precision and recall, reaching its optimal value at 1 and its worst value at 0. - The `beta` parameter determines the weight of precision in the combined + The `beta` parameter determines the weight of recall in the combined score. ``beta < 1`` lends more weight to precision, while ``beta > 1`` favors recall (``beta -> 0`` considers only precision, ``beta -> inf`` only recall). diff --git a/sklearn/preprocessing/_encoders.py b/sklearn/preprocessing/_encoders.py index 6d11e7907984a..a8567e14db8fd 100644 --- a/sklearn/preprocessing/_encoders.py +++ b/sklearn/preprocessing/_encoders.py @@ -367,7 +367,8 @@ def _handle_deprecations(self, X): msg = ( "Passing 'n_values' is deprecated in version 0.20 and will be " "removed in 0.22. You can use the 'categories' keyword " - "instead. 'n_values=n' corresponds to 'categories=[range(n)]'." + "instead. 'n_values=n' corresponds to " + "'categories=[range(n)] * n_features'." ) warnings.warn(msg, DeprecationWarning) self._legacy_mode = True