aboutsummaryrefslogtreecommitdiff
path: root/python/pyspark/mllib
diff options
context:
space:
mode:
authorchristopher snow <chsnow123@gmail.com>2017-03-21 13:23:59 +0000
committerSean Owen <sowen@cloudera.com>2017-03-21 13:23:59 +0000
commit7620aed828d8baefc425b54684a83c81f1507b02 (patch)
tree728c706263ff571e3691c8a3569841e35f495bde /python/pyspark/mllib
parentd2dcd6792f4cea39e12945ad8c4cda5d8d034de4 (diff)
downloadspark-7620aed828d8baefc425b54684a83c81f1507b02.tar.gz
spark-7620aed828d8baefc425b54684a83c81f1507b02.tar.bz2
spark-7620aed828d8baefc425b54684a83c81f1507b02.zip
[SPARK-20011][ML][DOCS] Clarify documentation for ALS 'rank' parameter
## What changes were proposed in this pull request? API documentation and collaborative filtering documentation page changes to clarify inconsistent description of ALS rank parameter. - [DOCS] was previously: "rank is the number of latent factors in the model." - [API] was previously: "rank - number of features to use" This change describes rank in both places consistently as: - "Number of features to use (also referred to as the number of latent factors)" Author: Chris Snow <chris.snowuk.ibm.com> Author: christopher snow <chsnow123@gmail.com> Closes #17345 from snowch/SPARK-20011.
Diffstat (limited to 'python/pyspark/mllib')
-rw-r--r--python/pyspark/mllib/recommendation.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/pyspark/mllib/recommendation.py b/python/pyspark/mllib/recommendation.py
index 732300ee9c..8118288135 100644
--- a/python/pyspark/mllib/recommendation.py
+++ b/python/pyspark/mllib/recommendation.py
@@ -249,7 +249,7 @@ class ALS(object):
:param ratings:
RDD of `Rating` or (userID, productID, rating) tuple.
:param rank:
- Rank of the feature matrices computed (number of features).
+ Number of features to use (also referred to as the number of latent factors).
:param iterations:
Number of iterations of ALS.
(default: 5)
@@ -287,7 +287,7 @@ class ALS(object):
:param ratings:
RDD of `Rating` or (userID, productID, rating) tuple.
:param rank:
- Rank of the feature matrices computed (number of features).
+ Number of features to use (also referred to as the number of latent factors).
:param iterations:
Number of iterations of ALS.
(default: 5)