Skip to content
This repository was archived by the owner on May 9, 2024. It is now read-only.

Commit 65eba21

Browse files
committed
pep8 fixes
1 parent 0e3797e commit 65eba21

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

python/pyspark/ml/param/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ def getOrDefault(self, param):
135135
else:
136136
raise KeyError("Cannot recognize %r as a param." % param)
137137

138-
139138
def extractParamMap(self, extraParamMap={}):
140139
"""
141140
Extracts the embedded default param values and user-supplied

python/pyspark/ml/tests.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ def __init__(self, seed=None):
122122
self._setDefault(maxIter=10)
123123
self._set(seed=seed)
124124

125+
125126
class ParamTests(PySparkTestCase):
126127

127128
def test_param(self):
@@ -166,7 +167,7 @@ def test_params(self):
166167

167168
def test_hasseed(self):
168169
noSeedSpecd = TestParams()
169-
withSeedSpecd = TestParams(seed = 42)
170+
withSeedSpecd = TestParams(seed=42)
170171
# Check that we no longer use 42 as the magic number
171172
self.assertNotEqual(noSeedSpecd.getSeed(), 42)
172173
origSeed = noSeedSpecd.getSeed()

0 commit comments

Comments
 (0)