You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "DB Tsai (JIRA)" <ji...@apache.org> on 2014/04/22 01:30:23 UTC

[jira] [Updated] (SPARK-1457) Change APIs for training algorithms to take optimizer as parameter

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

DB Tsai updated SPARK-1457:
---------------------------

    Assignee:     (was: DB Tsai)

> Change APIs for training algorithms to take optimizer as parameter 
> -------------------------------------------------------------------
>
>                 Key: SPARK-1457
>                 URL: https://issues.apache.org/jira/browse/SPARK-1457
>             Project: Spark
>          Issue Type: Improvement
>          Components: MLlib
>            Reporter: DB Tsai
>
> Currently, the training api has signature like LogisticRegressionWithSGD. 
> If we want to use another optimizer, we've two options, either adding new api like LogisticRegressionWithNewOptimizer which causes 99% of the code duplication, or we can re-factorize the api to take the optimizer as an option like the following. 
> class LogisticRegression private (
>     var optimizer: Optimizer)
>   extends GeneralizedLinearAlgorithm[LogisticRegressionModel]



--
This message was sent by Atlassian JIRA
(v6.2#6252)