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/09 23:21:15 UTC
[jira] [Created] (SPARK-1457) Change APIs for training algorithms
to take optimizer as parameter
DB Tsai created SPARK-1457:
------------------------------
Summary: 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)