You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Manoj Kumar (JIRA)" <ji...@apache.org> on 2016/08/19 00:18:20 UTC

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

Manoj Kumar created SPARK-17146:
-----------------------------------

             Summary: 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


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