@@ -756,8 +756,8 @@ def perplexity(self, X, doc_topic_distr='deprecated', sub_sampling=False):
756
756
Perplexity is defined as exp(-1. * log-likelihood per word)
757
757
758
758
.. versionchanged:: 0.19
759
- *doc_topic_distr* argument has been depricated because user no
760
- longer has access to unnormalized distribution
759
+ *doc_topic_distr* argument has been deprecated and is ignored
760
+ because user no longer has access to unnormalized distribution
761
761
762
762
Parameters
763
763
----------
@@ -766,7 +766,7 @@ def perplexity(self, X, doc_topic_distr='deprecated', sub_sampling=False):
766
766
767
767
doc_topic_distr : None or array, shape=(n_samples, n_topics)
768
768
Document topic distribution.
769
- If it is None, it will be generated by applying transform on X .
769
+ This argument is deprecated and is currently being ignored .
770
770
771
771
.. deprecated:: 0.19
772
772
@@ -776,8 +776,9 @@ def perplexity(self, X, doc_topic_distr='deprecated', sub_sampling=False):
776
776
Perplexity score.
777
777
"""
778
778
if doc_topic_distr != 'deprecated' :
779
- warnings .warn ("Argument 'doc_topic_distr' is deprecated and will "
780
- "be ignored as of 0.19. Support for this argument "
781
- "will be removed in 0.21." , DeprecationWarning )
779
+ warnings .warn ("Argument 'doc_topic_distr' is deprecated and is "
780
+ "being ignored as of 0.19. Support for this "
781
+ "argument will be removed in 0.21." ,
782
+ DeprecationWarning )
782
783
783
784
return self ._perplexity_precomp_distr (X , sub_sampling = sub_sampling )
0 commit comments