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

WeightedLeastSquares.fit() should handle division by zero properly if standard deviation of target variable is zero.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 2.0.0
    • ML
    • None

    Description

      This is a TODO in WeightedLeastSquares.fit() method. If the standard deviation of the target variablel is zero, then the regression is meaningless. I think the fit() method should inform the user and exit nicely.

      Attachments

        Activity

          People

            iyounus Imran Younus
            iyounus Imran Younus
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: