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 bf9388a commit c096c5aCopy full SHA for c096c5a
unsupervised_class/tweets.py
@@ -66,7 +66,7 @@ def filter_tweet(s):
66
67
# transform the text into a data matrix
68
tfidf = TfidfVectorizer(max_features=100, stop_words=stopwords)
69
-X = tfidf.fit_transform(text).todense()
+X = tfidf.fit_transform(text).asformat('array')
70
71
72
# subsample for efficiency
0 commit comments