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

Eliminate use of SingularMatrixException in WeightedLeastSquares logic

    XMLWordPrintableJSON

Details

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

    Description

      WeightedLeastSquares uses an Exception to implement fallback logic for which solver to use: https://github.com/apache/spark/blob/6f3697136aa68dc39d3ce42f43a7af554d2a3bf9/mllib/src/main/scala/org/apache/spark/ml/optim/WeightedLeastSquares.scala#L258

      We should use an error code instead of an exception.

      • Note the error code should be internal, not a public API.
      • We may be able to eliminate the SingularMatrixException class.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              josephkb Joseph K. Bradley
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: