Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-1457

Change APIs for training algorithms to take optimizer as parameter

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • None
    • None
    • MLlib
    • None

    Description

      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]

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dbtsai DB Tsai
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: