From 31ddae17e5905e0854d97f335139a742f10faf7f Mon Sep 17 00:00:00 2001 From: ducanne <71016393+ducannelync@users.noreply.github.com> Date: Sat, 12 Mar 2022 16:09:46 +0100 Subject: [PATCH] fix docstrings on preprocessing._data.normalize --- sklearn/preprocessing/_data.py | 4 ++-- sklearn/tests/test_docstrings.py | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/sklearn/preprocessing/_data.py b/sklearn/preprocessing/_data.py index 6a30e0d5d1af5..dfa7780da2c0a 100644 --- a/sklearn/preprocessing/_data.py +++ b/sklearn/preprocessing/_data.py @@ -1745,12 +1745,12 @@ def normalize(X, norm="l2", *, axis=1, copy=True, return_norm=False): each sample, otherwise (if 0) normalize each feature. copy : bool, default=True - set to False to perform inplace row normalization and avoid a + Set to False to perform inplace row normalization and avoid a copy (if the input is already a numpy array or a scipy.sparse CSR matrix and if axis is 1). return_norm : bool, default=False - whether to return the computed norms + Whether to return the computed norms. Returns ------- diff --git a/sklearn/tests/test_docstrings.py b/sklearn/tests/test_docstrings.py index 1e5397058e70c..fd1f143d1bd0f 100644 --- a/sklearn/tests/test_docstrings.py +++ b/sklearn/tests/test_docstrings.py @@ -112,7 +112,6 @@ "sklearn.pipeline.make_union", "sklearn.preprocessing._data.binarize", "sklearn.preprocessing._data.maxabs_scale", - "sklearn.preprocessing._data.normalize", "sklearn.preprocessing._data.power_transform", "sklearn.preprocessing._data.quantile_transform", "sklearn.preprocessing._data.robust_scale",