Skip to content

Error thrown when running an example #8080

Closed

Description

@dalmia

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')

Activity

  1. dalmia commented on Dec 19, 2016

    @dalmia
    ContributorAuthor

    For some reason, removing the downloaded dataset and downloading it again worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions