8000 DOC add missing parentheses in TfidfTrasnformer docstring · Pthinker/scikit-learn@eabaef3 · GitHub
[go: up one dir, main page]

Skip to content
Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit eabaef3

Browse files
committed
DOC add missing parentheses in TfidfTrasnformer docstring
1 parent 3dc8d2f commit eabaef3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sklearn/feature_extraction/text.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -966,7 +966,7 @@ class TfidfTransformer(BaseEstimator, TransformerMixin):
966966
If ``smooth_idf=True`` (the default), the constant "1" is added to the
967967
numerator and denominator of the idf as if an extra document was seen
968968
containing every term in the collection exactly once, which prevents
969-
zero divisions: idf(d, t) = log [ (1 + n) / 1 + df(d, t) ] + 1.
969+
zero divisions: idf(d, t) = log [ (1 + n) / (1 + df(d, t)) ] + 1.
970970
971971
Furthermore, the formulas used to compute tf and idf depend
972972
on parameter settings that correspond to the SMART notation used in IR

0 commit comments

Comments
 (0)
0