[
https://issues.apache.org/jira/browse/SPARK-12230?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15047985#comment-15047985
]
Imran Younus commented on SPARK-12230:
--------------------------------------
I can work on this.
> WeightedLeastSquares.fit() should handle division by zero properly if
> standard deviation of target variable is zero.
> --------------------------------------------------------------------------------------------------------------------
>
> Key: SPARK-12230
> URL: https://issues.apache.org/jira/browse/SPARK-12230
> Project: Spark
> Issue Type: Bug
> Components: ML
> Reporter: Imran Younus
> Priority: Trivial
>
> 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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]