Skip to content
Snippets Groups Projects
Commit 7dc9d8db authored by Yu ISHIKAWA's avatar Yu ISHIKAWA Committed by Joseph K. Bradley
Browse files

[SPARK-11610][MLLIB][PYTHON][DOCS] Make the docs of LDAModel.describeTopics in Python more specific

cc jkbradley

Author: Yu ISHIKAWA <yuu.ishikawa@gmail.com>

Closes #9577 from yu-iskw/SPARK-11610.
parent 675c7e72
No related branches found
No related tags found
No related merge requests found
......@@ -734,6 +734,12 @@ class LDAModel(JavaModelWrapper, JavaSaveable, Loader):
"""Return the topics described by weighted terms.
WARNING: If vocabSize and k are large, this can return a large object!
:param maxTermsPerTopic: Maximum number of terms to collect for each topic.
(default: vocabulary size)
:return: Array over topics. Each topic is represented as a pair of matching arrays:
(term indices, term weights in topic).
Each topic's terms are sorted in order of decreasing weight.
"""
if maxTermsPerTopic is None:
topics = self.call("describeTopics")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment