Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecation warning in matutils #2432

Open
PeteBleackley opened this issue Apr 3, 2019 · 1 comment
Open

Deprecation warning in matutils #2432

PeteBleackley opened this issue Apr 3, 2019 · 1 comment
Labels

Comments

@PeteBleackley
Copy link
Contributor

Problem description

matutils.corpus2dense triggers the following deprecation warning

 /opt/conda/lib/python3.6/site-packages/gensim/matutils.py:503: FutureWarning: arrays to stack must be passed as a "sequence" type such as list or tuple. Support for non-sequence iterables such as generators is deprecated as of NumPy 1.16 and will raise an error in the future.
  result = np.column_stack(sparse2full(doc, num_terms) for doc in corpus)

Steps/code/corpus to reproduce

See this Kaggle kernel for an example

@PeteBleackley
Copy link
Contributor Author

Now passing tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants