Github user dorx commented on a diff in the pull request:
https://github.com/apache/spark/pull/1713#discussion_r15709151
--- Diff:
mllib/src/main/scala/org/apache/spark/mllib/api/python/PythonMLLibAPI.scala ---
@@ -456,6 +458,37 @@ class PythonMLLibAPI extends Serializable {
ALS.trainImplicit(ratings, rank, iterations, lambda, blocks, alpha)
}
+ /**
+ * Java stub for mllib Statistics.corr(X: RDD[Vector], method: String).
+ * Returns the correlation matrix serialized into a byte array
understood by deserializers in
+ * pyspark.
+ */
+ def corr(X: JavaRDD[Array[Byte]], method: String): Array[Byte] = {
--- End diff --
This was designed to match R's method name. R was a good candidate here
since it also allows you to pass in the method name as a string after the input
arrays/matrix.
---
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.
---