Skip to content

Commit fb03c98

Browse files
committed
Revert a feature tagged as DOC
1 parent 89841a7 commit fb03c98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sklearn/feature_extraction/text.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1511,7 +1511,7 @@ class TfidfTransformer(_OneToOneFeatureMixin, TransformerMixin, BaseEstimator):
15111511
15121512
Parameters
15131513
----------
1514-
norm : {'l1', 'l2'} or None, default='l2'
1514+
norm : {'l1', 'l2'}, default='l2'
15151515
Each output row will have unit norm, either:
15161516
15171517
- 'l2': Sum of squares of vector elements is 1. The cosine
@@ -1685,7 +1685,7 @@ def transform(self, X, copy=True):
16851685
# *= doesn't work
16861686
X = X * self._idf_diag
16871687

1688-
if self.norm is not None:
1688+
if self.norm:
16891689
X = normalize(X, norm=self.norm, copy=False)
16901690

16911691
return X

0 commit comments

Comments
 (0)