You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by jk...@apache.org on 2015/11/10 01:25:34 UTC
spark git commit: [SPARK-11610][MLLIB][PYTHON][DOCS] Make the docs of
LDAModel.describeTopics in Python more specific
Repository: spark
Updated Branches:
refs/heads/master 675c7e723 -> 7dc9d8dba
[SPARK-11610][MLLIB][PYTHON][DOCS] Make the docs of LDAModel.describeTopics in Python more specific
cc jkbradley
Author: Yu ISHIKAWA <yu...@gmail.com>
Closes #9577 from yu-iskw/SPARK-11610.
Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/7dc9d8db
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/7dc9d8db
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/7dc9d8db
Branch: refs/heads/master
Commit: 7dc9d8dba6c4bc655896b137062d896dec4ef64a
Parents: 675c7e7
Author: Yu ISHIKAWA <yu...@gmail.com>
Authored: Mon Nov 9 16:25:29 2015 -0800
Committer: Joseph K. Bradley <jo...@databricks.com>
Committed: Mon Nov 9 16:25:29 2015 -0800
----------------------------------------------------------------------
python/pyspark/mllib/clustering.py | 6 ++++++
1 file changed, 6 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/spark/blob/7dc9d8db/python/pyspark/mllib/clustering.py
----------------------------------------------------------------------
diff --git a/python/pyspark/mllib/clustering.py b/python/pyspark/mllib/clustering.py
index 12081f8..1fa061d 100644
--- a/python/pyspark/mllib/clustering.py
+++ b/python/pyspark/mllib/clustering.py
@@ -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")
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org