Github user yanboliang commented on a diff in the pull request:
https://github.com/apache/spark/pull/9328#discussion_r43232459
--- Diff: python/pyspark/ml/regression.py ---
@@ -103,21 +103,6 @@ def setParams(self, featuresCol="features",
labelCol="label", predictionCol="pre
def _create_model(self, java_model):
return LinearRegressionModel(java_model)
- @since("1.4.0")
- def setElasticNetParam(self, value):
- """
- Sets the value of :py:attr:`elasticNetParam`.
- """
- self._paramMap[self.elasticNetParam] = value
- return self
-
- @since("1.4.0")
- def getElasticNetParam(self):
- """
- Gets the value of elasticNetParam or its default value.
- """
- return self.getOrDefault(self.elasticNetParam)
-
--- End diff --
BTW remove these two functions because ```LinearRegression``` has already
extends from ```HasElasticNetParam```.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]