8000 [MRG] Change deprecation warning for doc_topic_distr from future to p… · scikit-learn/scikit-learn@581e135 · GitHub
[go: up one dir, main page]

Skip to content

Commit 581e135

Browse files
garyForemanjnothman
authored andcommitted
[MRG] Change deprecation warning for doc_topic_distr from future to present… (#8146)
1 parent 6e8ebda commit 581e135

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

sklearn/decomposition/online_lda.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -756,8 +756,8 @@ def perplexity(self, X, doc_topic_distr='deprecated', sub_sampling=False):
756756
Perplexity is defined as exp(-1. * log-likelihood per word)
757757
758758
.. 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
761761
762762
Parameters
763763
----------
@@ -766,7 +766,7 @@ def perplexity(self, X, doc_topic_distr='deprecated', sub_sampling=False):
766766
767767
doc_topic_distr : None or array, shape=(n_samples, n_topics)
768768
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.
770770
771771
.. deprecated:: 0.19
772772
@@ -776,8 +776,9 @@ def perplexity(self, X, doc_topic_distr='deprecated', sub_sampling=False):
776776
Perplexity score.
777777
"""
778778
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)
782783

783784
return self._perplexity_precomp_distr(X, sub_sampling=sub_sampling)

0 commit comments

Comments
 (0)
0