Github user mengxr commented on a diff in the pull request:
https://github.com/apache/spark/pull/1628#discussion_r15670585
--- Diff:
mllib/src/main/scala/org/apache/spark/mllib/api/python/PythonMLLibAPI.scala ---
@@ -453,4 +455,98 @@ class PythonMLLibAPI extends Serializable {
val ratings = ratingsBytesJRDD.rdd.map(unpackRating)
ALS.trainImplicit(ratings, rank, iterations, lambda, blocks, alpha)
}
+
+ // Used by the *RDD methods to get default seed if not passed in from
pyspark
+ private def getSeed(seed: java.lang.Long): Long = {
+ if (seed == null) Utils.random.nextLong else seed
+ }
+
+ // Used by *RDD methods to get default numPartitions if not passed in
from pyspark
+ private def getNumParts(numPartitions: java.lang.Integer, jsc:
JavaSparkContext): Int = {
--- End diff --
`getNumPartsOrDefault`?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---