You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Xiangrui Meng (JIRA)" <ji...@apache.org> on 2016/01/20 20:17:39 UTC
[jira] [Resolved] (SPARK-12230) WeightedLeastSquares.fit() should
handle division by zero properly if standard deviation of target variable
is zero.
[ https://issues.apache.org/jira/browse/SPARK-12230?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Xiangrui Meng resolved SPARK-12230.
-----------------------------------
Resolution: Fixed
Fix Version/s: 2.0.0
Issue resolved by pull request 10274
[https://github.com/apache/spark/pull/10274]
> 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
> Fix For: 2.0.0
>
>
> 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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org