GitHub user mgaido91 opened a pull request:

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

    [SPARK-25090][ML] Enforce implicit type coercion in ParamGridBuilder

    ## What changes were proposed in this pull request?
    
    When the grid of the parameters is created in `ParamGridBuilder`, the 
implicit type coercion is not enforced. So using an integer in the list of 
parameters to set for a parameter accepting a double can cause a class cast 
exception.
    
    The PR proposes to enforce the type coercion when building the parameters.
    
    ## How was this patch tested?
    
    added UT

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

    $ git pull https://github.com/mgaido91/spark SPARK-25090

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

    https://github.com/apache/spark/pull/22076.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 #22076
    
----
commit b5a59fdc71226323008561053cf918e079934f0a
Author: Marco Gaido <marcogaido91@...>
Date:   2018-08-11T10:07:31Z

    [SPARK-25090][ML] Enforce implicit type coercion in ParamGridBuilder

----


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to