flink-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trohrm...@apache.org
Subject flink git commit: [FLINK-2321] [ml] Set seed for SVM to be random
Date Wed, 09 Sep 2015 08:23:08 GMT
Repository: flink
Updated Branches:
  refs/heads/master e45fdf711 -> 1b318c91f


[FLINK-2321] [ml] Set seed for SVM to be random

This closes #889.


Project: http://git-wip-us.apache.org/repos/asf/flink/repo
Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/1b318c91
Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/1b318c91
Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/1b318c91

Branch: refs/heads/master
Commit: 1b318c91fda0358430e0fc590e8c4328f2dc052c
Parents: e45fdf7
Author: Theodore Vasiloudis <tvas@sics.se>
Authored: Mon Jul 6 15:41:25 2015 +0200
Committer: Till Rohrmann <trohrmann@apache.org>
Committed: Wed Sep 9 10:22:41 2015 +0200

----------------------------------------------------------------------
 docs/libs/ml/svm.md                                                | 2 +-
 .../src/main/scala/org/apache/flink/ml/classification/SVM.scala    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flink/blob/1b318c91/docs/libs/ml/svm.md
----------------------------------------------------------------------
diff --git a/docs/libs/ml/svm.md b/docs/libs/ml/svm.md
index 44e4d90..89f7e70 100644
--- a/docs/libs/ml/svm.md
+++ b/docs/libs/ml/svm.md
@@ -181,7 +181,7 @@ The SVM implementation can be controlled by the following parameters:
         <p>
           Defines the seed to initialize the random number generator.
           The seed directly controls which data points are chosen for the SDCA method.
-          (Default value: <strong>0</strong>)
+          (Default value: <strong>Random Long Integer</strong>)
         </p>
       </td>
     </tr>

http://git-wip-us.apache.org/repos/asf/flink/blob/1b318c91/flink-staging/flink-ml/src/main/scala/org/apache/flink/ml/classification/SVM.scala
----------------------------------------------------------------------
diff --git a/flink-staging/flink-ml/src/main/scala/org/apache/flink/ml/classification/SVM.scala
b/flink-staging/flink-ml/src/main/scala/org/apache/flink/ml/classification/SVM.scala
index 4c539d9..abf1696 100644
--- a/flink-staging/flink-ml/src/main/scala/org/apache/flink/ml/classification/SVM.scala
+++ b/flink-staging/flink-ml/src/main/scala/org/apache/flink/ml/classification/SVM.scala
@@ -260,7 +260,7 @@ object SVM{
   }
 
   case object Seed extends Parameter[Long] {
-    val defaultValue = Some(0L)
+    val defaultValue = Some(Random.nextLong())
   }
 
   case object ThresholdValue extends Parameter[Double] {


Mime
View raw message