Github user MechCoder commented on a diff in the pull request:
https://github.com/apache/spark/pull/7554#discussion_r35241549
--- Diff:
mllib/src/main/scala/org/apache/spark/mllib/api/python/PythonMLLibAPI.scala ---
@@ -1105,6 +1108,59 @@ private[python] class PythonMLLibAPI extends
Serializable {
Statistics.kolmogorovSmirnovTest(data, distName, paramsSeq: _*)
}
+ /**
+ * Wrapper around DistributedMatrices.rowMatrix factory method.
+ */
+ def createRowMatrix(rows: JavaRDD[Vector], numRows: Long, numCols: Int):
RowMatrix = {
+ DistributedMatrices.rowMatrix(rows.rdd, numRows, numCols)
--- End diff --
I'm wondering out aloud if it would be good to have a Javafriendly
constructor in `class RowMatrix` as in many other places.
---
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.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]