Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b7be3bf

Browse files
Aashiljnothman
authored andcommitted
DOC Fix doc for CountVectorizer class. (scikit-learn#8085)
* Change the return type mentioned in the comments from scipy.sparse.coo_matrix to scipy.spartse.csr_matrix.
1 parent 5d0c7f5 commit b7be3bf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sklearn/feature_extraction/text.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ class CountVectorizer(BaseEstimator, VectorizerMixin):
512512
"""Convert a collection of text documents to a matrix of token counts
513513
514514
This implementation produces a sparse representation of the counts using
515-
scipy.sparse.coo_matrix.
515+
scipy.sparse.csr_matrix.
516516
517517
If you do not provide an a-priori dictionary and you do not use an analyzer
518518
that does some kind of feature selection then the number of features will

0 commit comments

Comments
 (0)