提交 1b318c91 编写于 作者: T Theodore Vasiloudis 提交者: Till Rohrmann

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

This closes #889.
上级 e45fdf71
...@@ -181,7 +181,7 @@ The SVM implementation can be controlled by the following parameters: ...@@ -181,7 +181,7 @@ The SVM implementation can be controlled by the following parameters:
<p> <p>
Defines the seed to initialize the random number generator. Defines the seed to initialize the random number generator.
The seed directly controls which data points are chosen for the SDCA method. 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> </p>
</td> </td>
</tr> </tr>
......
...@@ -260,7 +260,7 @@ object SVM{ ...@@ -260,7 +260,7 @@ object SVM{
} }
case object Seed extends Parameter[Long] { case object Seed extends Parameter[Long] {
val defaultValue = Some(0L) val defaultValue = Some(Random.nextLong())
} }
case object ThresholdValue extends Parameter[Double] { case object ThresholdValue extends Parameter[Double] {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册