GitHub user holdenk opened a pull request:

    https://github.com/apache/spark/pull/10178

    [SPARK-10509][PYSPARK] Remove excessive param boiler plate code

    The current python ml params require cut-and-pasting the param setup and 
description between the class & ```__init__``` methods. Remove this possible 
case of errors & simplify use of custom params by adding a _copy_new_parent 
method to params so as to avoid cut and pasting.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/holdenk/spark 
SPARK-10509-excessive-param-boiler-plate-code

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/10178.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 #10178
    
----
commit be64753dcc0a78518c689088c97b0f46bdaa4c58
Author: Holden Karau <[email protected]>
Date:   2015-12-07T19:20:04Z

    rewrite regression and classification custom params to use copying

commit 5ffdd38767859df31120153b348944d6378c8d2d
Author: Holden Karau <[email protected]>
Date:   2015-12-07T20:49:24Z

    Replace manually cut and pasted params with _copy_new_parent calls

----


---
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]

Reply via email to