Github user mengxr commented on the pull request:
https://github.com/apache/spark/pull/3216#issuecomment-62676590
@davies I tried the following but failed:
~~~
In [1]: from pyspark.mllib.feature import Word2Vec
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-1-ab62774bf8f7> in <module>()
----> 1 from pyspark.mllib.feature import Word2Vec
/Users/meng/src/spark/python/pyspark/mllib/__init__.py in <module>()
32 import rand as random
33 random.__name__ = 'random'
---> 34 random.RandomRDDs.__module__ = __name__ + '.random'
35
36
AttributeError: 'module' object has no attribute 'RandomRDDs'
~~~
This doesn't work either:
~~~
In [2]: from pyspark.mllib.random import RandomRDDs
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-2-f53a0b3853a0> in <module>()
----> 1 from pyspark.mllib.random import RandomRDDs
/Users/meng/src/spark/python/pyspark/mllib/__init__.py in <module>()
32 import rand as random
33 random.__name__ = 'random'
---> 34 random.RandomRDDs.__module__ = __name__ + '.random'
35
36
AttributeError: 'module' object has no attribute 'RandomRDDs'
~~~
I'm using IPython 2.1.0 with Python 2.7.8.
---
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]