You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by me...@apache.org on 2015/02/04 05:39:16 UTC
spark git commit: [FIX][MLLIB] fix seed handling in Python GMM
Repository: spark
Updated Branches:
refs/heads/master d37978d8a -> eb1563185
[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 <me...@databricks.com>
Closes #4349 from mengxr/gmm-fix and squashes the following commits:
3be5926 [Xiangrui Meng] fix seed handling in Python GMM
Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/eb156318
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/eb156318
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/eb156318
Branch: refs/heads/master
Commit: eb15631854f8e8e7bcd1b3331f18d6ee81dd6d5c
Parents: d37978d
Author: Xiangrui Meng <me...@databricks.com>
Authored: Tue Feb 3 20:39:11 2015 -0800
Committer: Xiangrui Meng <me...@databricks.com>
Committed: Tue Feb 3 20:39:11 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/eb156318/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-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org