[ https://issues.apache.org/jira/browse/SPARK-1457?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
DB Tsai reassigned SPARK-1457: ------------------------------ Assignee: 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 > Assignee: 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)