Skip to content
Snippets Groups Projects
  • Bryan Cutler's avatar
    2f69e3f6
    [SPARK-14772][PYTHON][ML] Fixed Params.copy method to match Scala implementation · 2f69e3f6
    Bryan Cutler authored
    ## What changes were proposed in this pull request?
    Fixed the PySpark Params.copy method to behave like the Scala implementation.  The main issue was that it did not account for the _defaultParamMap and merged it into the explicitly created param map.
    
    ## How was this patch tested?
    Added new unit test to verify the copy method behaves correctly for copying uid, explicitly created params, and default params.
    
    Author: Bryan Cutler <cutlerb@gmail.com>
    
    Closes #16772 from BryanCutler/pyspark-ml-param_copy-Scala_sync-SPARK-14772.
    2f69e3f6
    History
    [SPARK-14772][PYTHON][ML] Fixed Params.copy method to match Scala implementation
    Bryan Cutler authored
    ## What changes were proposed in this pull request?
    Fixed the PySpark Params.copy method to behave like the Scala implementation.  The main issue was that it did not account for the _defaultParamMap and merged it into the explicitly created param map.
    
    ## How was this patch tested?
    Added new unit test to verify the copy method behaves correctly for copying uid, explicitly created params, and default params.
    
    Author: Bryan Cutler <cutlerb@gmail.com>
    
    Closes #16772 from BryanCutler/pyspark-ml-param_copy-Scala_sync-SPARK-14772.
__init__.py 16.14 KiB