[SPARK-29093][ML][PYSPARK][FOLLOW-UP] Remove duplicate setter
### What changes were proposed in this pull request? remove duplicate setter in ```BucketedRandomProjectionLSH``` ### Why are the changes needed? Remove the duplicate ```setInputCol/setOutputCol``` in ```BucketedRandomProjectionLSH``` because these two setter are already in super class ```LSH``` ### Does this PR introduce any user-facing change? No ### How was this patch tested? Manually checked. Closes #27397 from huaxingao/spark-29093. Authored-by: Huaxin Gao <huaxing@us.ibm.com> Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
This commit is contained in:
parent
a5c7090ffa
commit
6fac411076
|
@ -415,18 +415,6 @@ class BucketedRandomProjectionLSH(_LSH, _BucketedRandomProjectionLSHParams,
|
|||
"""
|
||||
return self._set(bucketLength=value)
|
||||
|
||||
def setInputCol(self, value):
|
||||
"""
|
||||
Sets the value of :py:attr:`inputCol`.
|
||||
"""
|
||||
return self._set(inputCol=value)
|
||||
|
||||
def setOutputCol(self, value):
|
||||
"""
|
||||
Sets the value of :py:attr:`outputCol`.
|
||||
"""
|
||||
return self._set(outputCol=value)
|
||||
|
||||
def setSeed(self, value):
|
||||
"""
|
||||
Sets the value of :py:attr:`seed`.
|
||||
|
|
|
@ -2067,7 +2067,7 @@ class GeneralizedLinearRegression(JavaRegressor, _GeneralizedLinearRegressionPar
|
|||
"""
|
||||
return self._set(tol=value)
|
||||
|
||||
@since("2.2.0")
|
||||
@since("2.0.0")
|
||||
def setFitIntercept(self, value):
|
||||
"""
|
||||
Sets the value of :py:attr:`fitIntercept`.
|
||||
|
|
Loading…
Reference in a new issue