Skip to content
Snippets Groups Projects
  • Yanbo Liang's avatar
    d26f7cb0
    [SPARK-14971][ML][PYSPARK] PySpark ML Params setter code clean up · d26f7cb0
    Yanbo Liang authored
    ## What changes were proposed in this pull request?
    PySpark ML Params setter code clean up.
    For examples,
    ```setInputCol``` can be simplified from
    ```
    self._set(inputCol=value)
    return self
    ```
    to:
    ```
    return self._set(inputCol=value)
    ```
    This is a pretty big sweeps, and we cleaned wherever possible.
    ## How was this patch tested?
    Exist unit tests.
    
    Author: Yanbo Liang <ybliang8@gmail.com>
    
    Closes #12749 from yanboliang/spark-14971.
    d26f7cb0
    History
    [SPARK-14971][ML][PYSPARK] PySpark ML Params setter code clean up
    Yanbo Liang authored
    ## What changes were proposed in this pull request?
    PySpark ML Params setter code clean up.
    For examples,
    ```setInputCol``` can be simplified from
    ```
    self._set(inputCol=value)
    return self
    ```
    to:
    ```
    return self._set(inputCol=value)
    ```
    This is a pretty big sweeps, and we cleaned wherever possible.
    ## How was this patch tested?
    Exist unit tests.
    
    Author: Yanbo Liang <ybliang8@gmail.com>
    
    Closes #12749 from yanboliang/spark-14971.