Github user zhengruifeng commented on a diff in the pull request:
https://github.com/apache/spark/pull/12868#discussion_r62028335
--- Diff: examples/src/main/python/mllib/gaussian_mixture_model.py ---
@@ -49,7 +49,7 @@ def parseVector(line):
parser.add_argument('--convergenceTol', default=1e-3, type=float,
help='convergence threshold')
parser.add_argument('--maxIterations', default=100, type=int,
help='Number of iterations')
parser.add_argument('--seed', default=random.getrandbits(19),
- type=long, help='Random seed')
+ type=int, help='Random seed')
--- End diff --
But in my ipython3, it output this:
```
In [3]: import random
In [4]: r = random.getrandbits(19)
In [5]: type(r)
Out[5]: int
```
---
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]