GitHub user mengxr opened a pull request:
https://github.com/apache/spark/pull/4564
[SPARK-5769] Set params in constructors and in setParams in Python ML
pipelines
This PR allow Python users to set params in constructors and in setParams,
where we use decorator `keyword_only` to force keyword arguments. The trade-off
is discussed in the design doc of SPARK-4586.
Generated doc:

CC: @davies @rxin
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/mengxr/spark py-pipeline-kw
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/4564.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #4564
----
commit 8e59180431f4db045160401da4f785f8a34be923
Author: Xiangrui Meng <[email protected]>
Date: 2015-02-12T10:34:56Z
add setParams and make constructors take params, where we force keyword args
commit c9384b88bbdd87b3f57f84f46e08cfba5f661739
Author: Xiangrui Meng <[email protected]>
Date: 2015-02-12T11:07:20Z
fix sphinx doc
----
---
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]