You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "holdenk (JIRA)" <ji...@apache.org> on 2016/11/25 14:48:58 UTC
[jira] [Commented] (SPARK-6522) Standardize Random Number
Generation
[ https://issues.apache.org/jira/browse/SPARK-6522?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15696024#comment-15696024 ]
holdenk commented on SPARK-6522:
--------------------------------
We have a standardized RDD generator in MLlib (see the RandomRDDs object).
> Standardize Random Number Generation
> ------------------------------------
>
> Key: SPARK-6522
> URL: https://issues.apache.org/jira/browse/SPARK-6522
> Project: Spark
> Issue Type: Improvement
> Components: Spark Core
> Affects Versions: 1.3.0
> Reporter: RJ Nowling
> Priority: Minor
> Fix For: 1.1.0
>
>
> Generation of random numbers in Spark has to be handled carefully since references to RNGs copy the state to the workers. As such, a separate RNG needs to be seeded for each partition. Each time random numbers are used in Spark's libraries, the RNG seeding is re-implemented, leaving open the possibility of mistakes.
> It would be useful if RNG seeding was standardized through utility functions or random number generation functions that can be called in Spark pipelines.
--
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