Skip to content

Commit a73fa19

Browse files
committed
clean up
1 parent 3d8007b commit a73fa19

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

python/pyspark/mllib/Word2Vec.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@
1818
"""
1919
Python package for Word2Vec in MLlib.
2020
"""
21-
from sys import maxint
22-
23-
from numpy import random
24-
2521
from pyspark.serializers import PickleSerializer, AutoBatchedSerializer
2622

2723
from pyspark.mllib.linalg import _convert_to_vector
@@ -122,7 +118,7 @@ def __init__(self):
122118
self.learningRate = 0.025
123119
self.numPartitions = 1
124120
self.numIterations = 1
125-
self.seed = random.randint(0, high=maxint)
121+
self.seed = 42L
126122

127123
def setVectorSize(self, vectorSize):
128124
"""

0 commit comments

Comments
 (0)