You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (JIRA)" <ji...@apache.org> on 2019/05/21 04:21:33 UTC

[jira] [Updated] (SPARK-17146) Add RandomizedSearch to the CrossValidator API

     [ https://issues.apache.org/jira/browse/SPARK-17146?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hyukjin Kwon updated SPARK-17146:
---------------------------------
    Labels: bulk-closed  (was: )

> Add RandomizedSearch to the CrossValidator API
> ----------------------------------------------
>
>                 Key: SPARK-17146
>                 URL: https://issues.apache.org/jira/browse/SPARK-17146
>             Project: Spark
>          Issue Type: Improvement
>            Reporter: Manoj Kumar
>            Priority: Minor
>              Labels: bulk-closed
>
> Hi, I would like to add randomized search support for the Cross-Validator API. It should be quite straightforward to add with the present abstractions.
> Here is the proposed API:
> (Names are up for debate)
> Proposed Classes:
> "ParamSamplerBuilder" or a "ParamRandomizedBuilder" that returns an
> Array of ParamMaps
> Proposed Methods:
> "addBounds"
> "addSampler"
> "setNumIter"
> Code example:
> {code}
> def sampler(): Double = {
>     Math.pow(10.0, -5 + Random.nextFloat * (5 - (-5))
> }
> val paramGrid = new ParamRandomizedBuilder()
>   .addSampler(lr.regParam, sampler)
>   .addBounds(lr.elasticNetParam, 0.0, 1.0)
>   .setNumIter(10)
>   .build()
> {code}
> Let me know your thoughts!



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org