Skip to content
Snippets Groups Projects
  • Holden Karau's avatar
    eb917291
    [SPARK-10509][PYSPARK] Reduce excessive param boiler plate code · eb917291
    Holden Karau authored
    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 param so as to avoid cut and pasting (and cut and pasting at different indentation levels urgh).
    
    Author: Holden Karau <holden@us.ibm.com>
    
    Closes #10216 from holdenk/SPARK-10509-excessive-param-boiler-plate-code.
    eb917291
    History
    [SPARK-10509][PYSPARK] Reduce excessive param boiler plate code
    Holden Karau authored
    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 param so as to avoid cut and pasting (and cut and pasting at different indentation levels urgh).
    
    Author: Holden Karau <holden@us.ibm.com>
    
    Closes #10216 from holdenk/SPARK-10509-excessive-param-boiler-plate-code.