Closed
Description
Description
Value Error thrown when running this example using master.
Steps/Code to Reproduce
Simply running the example.
Expected Results
No error is thrown.
Actual Results
File "plot_out_of_core_classification.py", line 251, in <module>
X_test = vectorizer.transform(X_test_text)
File "/media/aman/BE66ECBA66EC7515/Open Source/scikit-learn/sklearn/feature_extraction/text.py", line 487, in transform
X = self._get_hasher().transform(analyzer(doc) for doc in X)
File "/media/aman/BE66ECBA66EC7515/Open Source/scikit-learn/sklearn/feature_extraction/hashing.py", line 146, in transform
raise ValueError("Cannot vectorize empty sequence.")
ValueError: Cannot vectorize empty sequence.
Versions
Linux-3.19.0-75-generic-x86_64-with-Ubuntu-15.04-vivid
('Python', '2.7.9 (default, Apr 2 2015, 15:33:21) \n[GCC 4.9.2]')
('NumPy', '1.11.2')
('SciPy', '0.18.1')
('Scikit-Learn', '0.19.dev0')
Metadata
Metadata
Assignees
Labels
No labels