8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3dc8d2f commit eabaef3Copy full SHA for eabaef3
sklearn/feature_extraction/text.py
@@ -966,7 +966,7 @@ class TfidfTransformer(BaseEstimator, TransformerMixin):
966
If ``smooth_idf=True`` (the default), the constant "1" is added to the
967
numerator and denominator of the idf as if an extra document was seen
968
containing every term in the collection exactly once, which prevents
969
- zero divisions: idf(d, t) = log [ (1 + n) / 1 + df(d, t) ] + 1.
+ zero divisions: idf(d, t) = log [ (1 + n) / (1 + df(d, t)) ] + 1.
970
971
Furthermore, the formulas used to compute tf and idf depend
972
on parameter settings that correspond to the SMART notation used in IR
0 commit comments