diff options
author | Yanbo Liang <ybliang8@gmail.com> | 2016-04-20 20:06:27 +0200 |
---|---|---|
committer | Nick Pentreath <nickp@za.ibm.com> | 2016-04-20 20:06:27 +0200 |
commit | 08f84d7a9a7429b3d6651b5af4d7740027b53d39 (patch) | |
tree | 6d5b83527939b0bd20a32291206324e97858cff2 /python/pyspark/ml | |
parent | 90cbc82fd4114219a5a0f180b1908a18985fda3e (diff) | |
download | spark-08f84d7a9a7429b3d6651b5af4d7740027b53d39.tar.gz spark-08f84d7a9a7429b3d6651b5af4d7740027b53d39.tar.bz2 spark-08f84d7a9a7429b3d6651b5af4d7740027b53d39.zip |
[MINOR][ML][PYSPARK] Fix omissive param setters which should use _set method
## What changes were proposed in this pull request?
#11939 make Python param setters use the `_set` method. This PR fix omissive ones.
## How was this patch tested?
Existing tests.
cc jkbradley sethah
Author: Yanbo Liang <ybliang8@gmail.com>
Closes #12531 from yanboliang/setters-omissive.
Diffstat (limited to 'python/pyspark/ml')
-rw-r--r-- | python/pyspark/ml/feature.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/pyspark/ml/feature.py b/python/pyspark/ml/feature.py index a1911cebe3..1b298e639d 100644 --- a/python/pyspark/ml/feature.py +++ b/python/pyspark/ml/feature.py @@ -340,7 +340,7 @@ class CountVectorizer(JavaEstimator, HasInputCol, HasOutputCol, JavaMLReadable, """ Sets the value of :py:attr:`binary`. """ - self._paramMap[self.binary] = value + self._set(binary=value) return self @since("2.0.0") @@ -569,7 +569,7 @@ class HashingTF(JavaTransformer, HasInputCol, HasOutputCol, HasNumFeatures, Java """ Sets the value of :py:attr:`binary`. """ - self._paramMap[self.binary] = value + self._set(binary=value) return self @since("2.0.0") |