You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2015/08/06 18:35:05 UTC

[jira] [Commented] (SPARK-9690) Adding the possibility to set the seed of the rand in the CrossValidator fold

    [ https://issues.apache.org/jira/browse/SPARK-9690?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14660270#comment-14660270 ] 

Apache Spark commented on SPARK-9690:
-------------------------------------

User 'mmenestret' has created a pull request for this issue:
https://github.com/apache/spark/pull/7997

> Adding the possibility to set the seed of the rand in the CrossValidator fold
> -----------------------------------------------------------------------------
>
>                 Key: SPARK-9690
>                 URL: https://issues.apache.org/jira/browse/SPARK-9690
>             Project: Spark
>          Issue Type: Improvement
>          Components: ML
>    Affects Versions: 1.4.1
>            Reporter: Martin Menestret
>            Priority: Minor
>             Fix For: 1.5.0
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> The fold in the ML CrossValidator depends on a rand whose seed is set to 0 and it leads the sql.functions rand to call sc._jvm.functions.rand() with no seed.
> In order to be able to unit test a Cross Validation it would be a good idea to be able to set this seed so the output of the cross validation (with a featureSubsetStrategy set to "all") would always be the same.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org