We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents defbd76 + d9b1ce4 commit a754906Copy full SHA for a754906
1 file changed
README.rst
@@ -425,7 +425,7 @@ Where N is number of documents and df(t) is the number of documents containing t
425
426
.. code:: python
427
428
- from sklearn.feature_extraction.text import TfidfTransformer
+ from sklearn.feature_extraction.text import TfidfVectorizer
429
def loadData(X_train, X_test,MAX_NB_WORDS=75000):
430
vectorizer_x = TfidfVectorizer(max_features=MAX_NB_WORDS)
431
X_train = vectorizer_x.fit_transform(X_train).toarray()
0 commit comments