Github user davies commented on a diff in the pull request:

    https://github.com/apache/spark/pull/3669#discussion_r21645055
  
    --- Diff: python/docs/pyspark.mllib.rst ---
    @@ -36,10 +36,10 @@ pyspark.mllib.linalg module
         :undoc-members:
         :show-inheritance:
     
    -pyspark.mllib.random module
    +pyspark.mllib.rand module
    --- End diff --
    
    It could be fixed by 
    ```
    diff --git a/python/pyspark/mllib/__init__.py 
b/python/pyspark/mllib/__init__.py
    index 5030a65..cba540a 100644
    --- a/python/pyspark/mllib/__init__.py
    +++ b/python/pyspark/mllib/__init__.py
    @@ -32,7 +32,7 @@ import sys
     import rand as random
     random.__name__ = 'random'
     random.RandomRDDs.__module__ = __name__ + '.random'
    
    +sys.modules[__name__ + '.random'] = random
    
     class RandomModuleHook(object):
         """
    ```


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to