[
https://issues.apache.org/jira/browse/SPARK-14095?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Joseph K. Bradley closed SPARK-14095.
-------------------------------------
Resolution: Fixed
Fix Version/s: 2.0.0
The linked bug fix should be for this same issue; please say if I'm missing
something.
> LogisticRegression fails when a DataFrame has only a one-class label
> --------------------------------------------------------------------
>
> Key: SPARK-14095
> URL: https://issues.apache.org/jira/browse/SPARK-14095
> Project: Spark
> Issue Type: Improvement
> Components: ML, MLlib
> Affects Versions: 1.6.1
> Reporter: Grzegorz Chilkiewicz
> Priority: Minor
> Fix For: 2.0.0
>
>
> The problem might look unimportant, but imagine assigning arbitrary weights
> to rows or unfortunate splitting on training&test datasets.
> Even if the problem is to be ignored, we should return more meaningful error
> than "java.lang.ArrayIndexOutOfBoundsException: 1"
> I can investigate the problem more deeply and prepare a PR to fix it, or just
> intercept the exception and throw a more explanatory one. What should I do?
> Code to reproduce the bug:
> https://github.com/grzegorz-chilkiewicz/OneNonZeroWeight
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]