Github user mengxr commented on a diff in the pull request:
https://github.com/apache/spark/pull/8508#discussion_r39238745
--- Diff: python/pyspark/ml/regression.py ---
@@ -63,38 +64,30 @@ class LinearRegression(JavaEstimator, HasFeaturesCol,
HasLabelCol, HasPrediction
TypeError: Method setParams forces keyword arguments.
"""
- # a placeholder to make it appear in the generated doc
- elasticNetParam = \
- Param(Params._dummy(), "elasticNetParam",
- "the ElasticNet mixing parameter, in range [0, 1]. For alpha
= 0, " +
- "the penalty is an L2 penalty. For alpha = 1, it is an L1
penalty.")
-
@keyword_only
def __init__(self, featuresCol="features", labelCol="label",
predictionCol="prediction",
- maxIter=100, regParam=0.0, elasticNetParam=0.0, tol=1e-6):
+ maxIter=100, regParam=0.0, elasticNetParam=0.0, tol=1e-6,
fitIntercept=True,
+ standardization=True):
"""
__init__(self, featuresCol="features", labelCol="label",
predictionCol="prediction", \
- maxIter=100, regParam=0.0, elasticNetParam=0.0, tol=1e-6)
+ maxIter=100, regParam=0.0, elasticNetParam=0.0, tol=1e-6,
fitIntercept=True,
--- End diff --
add `\`
---
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]