Repository: spark Updated Branches: refs/heads/branch-1.3 5c63e0567 -> 679228b7f
[FIX][MLLIB] fix seed handling in Python GMM If `seed` is `None` on the python side, it will pass in as a `null`. So we should use `java.lang.Long` instead of `Long` to take it. Author: Xiangrui Meng <m...@databricks.com> Closes #4349 from mengxr/gmm-fix and squashes the following commits: 3be5926 [Xiangrui Meng] fix seed handling in Python GMM (cherry picked from commit eb15631854f8e8e7bcd1b3331f18d6ee81dd6d5c) Signed-off-by: Xiangrui Meng <m...@databricks.com> Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/679228b7 Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/679228b7 Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/679228b7 Branch: refs/heads/branch-1.3 Commit: 679228b7f4c865147ac65099ffd6f5aa45e7126d Parents: 5c63e05 Author: Xiangrui Meng <m...@databricks.com> Authored: Tue Feb 3 20:39:11 2015 -0800 Committer: Xiangrui Meng <m...@databricks.com> Committed: Tue Feb 3 20:39:18 2015 -0800 ---------------------------------------------------------------------- .../scala/org/apache/spark/mllib/api/python/PythonMLLibAPI.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/679228b7/mllib/src/main/scala/org/apache/spark/mllib/api/python/PythonMLLibAPI.scala ---------------------------------------------------------------------- diff --git a/mllib/src/main/scala/org/apache/spark/mllib/api/python/PythonMLLibAPI.scala b/mllib/src/main/scala/org/apache/spark/mllib/api/python/PythonMLLibAPI.scala index 9809805..3f29b82 100644 --- a/mllib/src/main/scala/org/apache/spark/mllib/api/python/PythonMLLibAPI.scala +++ b/mllib/src/main/scala/org/apache/spark/mllib/api/python/PythonMLLibAPI.scala @@ -295,7 +295,7 @@ class PythonMLLibAPI extends Serializable { k: Int, convergenceTol: Double, maxIterations: Int, - seed: Long): JList[Object] = { + seed: java.lang.Long): JList[Object] = { val gmmAlg = new GaussianMixture() .setK(k) .setConvergenceTol(convergenceTol) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org For additional commands, e-mail: commits-h...@spark.apache.org