You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean Owen (JIRA)" <ji...@apache.org> on 2016/08/19 07:44:21 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 ]
Sean Owen updated SPARK-17146:
------------------------------
Priority: Critical (was: Major)
> 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: Critical
>
> 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
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org