contextualized-topic-models
contextualized-topic-models copied to clipboard
Deprecation Warnings
- Contextualized Topic Models version: 2.3.0
- Python version: 3.8.12
- Operating System: Ubuntu 22.04.1 LTS x86_64
Description
I ran the ZeroShotTM example notebook on my local machine.
What I Did
topics_predictions = ctm.get_thetas(training_dataset, n_samples=5) # get all the topic predictions
DeprecationWarning: Please use `csr_matrix` from the `scipy.sparse` namespace, the `scipy.sparse.csr` namespace is deprecated.
if type(self.X_bow[i]) == scipy.sparse.csr.csr_matrix:
import pyLDAvis as vis
movies_pd = vis.prepare(**lda_vis_data)
vis.display(movies_pd)
DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
_np_version_forbids_neg_powint = LooseVersion(numpy.__version__) >= LooseVersion('1.12.0b1')`
Hello @TudorAndrei !
Thanks, guess we should update our dependencies
I ran the CombinedTM model and got the deprecation warnings.
"DeprecationWarning: Please use csr_matrix
from the scipy.sparse
namespace, the scipy.sparse.csr
namespace is deprecated."