GitHub user davies opened a pull request:

    https://github.com/apache/spark/pull/3216

    [SPARK-4348] [PySpark] [MLlib] rename random.py to rand.py

    This PR rename random.py to rand.py to avoid the side affects of conflict 
with random module, but still keep the same interface as before.
    
    ```
    >>> from pyspark.mllib.random import RandomRDDs
    ``` 
    
    ```
    $ pydoc pyspark.mllib.random
    Help on module random in pyspark.mllib:
    NAME
        random - Python package for random data generation.
    
    FILE
        /Users/davies/work/spark/python/pyspark/mllib/rand.py
    
    CLASSES
        __builtin__.object
            pyspark.mllib.random.RandomRDDs
    
        class RandomRDDs(__builtin__.object)
         |  Generator methods for creating RDDs comprised of i.i.d samples from
         |  some distribution.
         |
         |  Static methods defined here:
         |
         |  normalRDD(sc, size, numPartitions=None, seed=None)
    ```
    
    cc @mengxr


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/davies/spark random

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/3216.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #3216
    
----
commit 7ac4e8b2702a69a3f72d399e6561715527bd3d28
Author: Davies Liu <[email protected]>
Date:   2014-11-12T01:44:47Z

    rename random.py to rand.py

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to