contextualized-topic-models icon indicating copy to clipboard operation
contextualized-topic-models copied to clipboard

Deprecation Warnings

Open TudorAndrei opened this issue 2 years ago • 1 comments

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

TudorAndrei avatar Sep 07 '22 15:09 TudorAndrei

Hello @TudorAndrei !

Thanks, guess we should update our dependencies

vinid avatar Sep 07 '22 15:09 vinid

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."

Ton-moy avatar Jul 02 '23 07:07 Ton-moy