MIND-Lab / OCTIS

OCTIS: Comparing Topic Models is Simple! A python package to optimize and evaluate topic models (accepted at EACL2021 demo track)
MIT License
718 stars 102 forks source link

ValueError in colab notebook #87

Closed amrzv closed 1 year ago

amrzv commented 1 year ago

Description

When running OCTIS: Optimizing CTM.ipynb notebook in colab there raised ValueError at the very beginning of the notebook during imports.

What I Did

Kernel -> Run all cells image ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject

Seems like there is an incompatibility between gensim and numpy packages. "Restart kernel and run all" doesn't help.

ericchagnon15 commented 1 year ago

Have you found a fix for this?

amrzv commented 1 year ago

Yes, with the latest gensim release 4.3.0, there raises ValueError, as shown above, but it works with 4.2.0: !pip install octis gensim==4.2.0

Maybe the requirements should be changed.