aboutsummaryrefslogtreecommitdiff
path: root/python/pyspark/ml/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/pyspark/ml/util.py')
-rw-r--r--python/pyspark/ml/util.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/pyspark/ml/util.py b/python/pyspark/ml/util.py
index 6f7f39c40e..d3cb100a9e 100644
--- a/python/pyspark/ml/util.py
+++ b/python/pyspark/ml/util.py
@@ -40,8 +40,8 @@ class Identifiable(object):
def __init__(self):
#: A unique id for the object. The default implementation
- #: concatenates the class name, "-", and 8 random hex chars.
- self.uid = type(self).__name__ + "-" + uuid.uuid4().hex[:8]
+ #: concatenates the class name, "_", and 8 random hex chars.
+ self.uid = type(self).__name__ + "_" + uuid.uuid4().hex[:8]
def __repr__(self):
return self.uid