GitHub user guptesp opened a pull request:
https://github.com/apache/spark/pull/14310
Changes the numClasses check to !=2 (Line 306)
## What changes were proposed in this pull request?
Logistical Regression model gives Array Out Of Bounds exception is the
numClasses parameter is less than 2 (equal to 1)
## How was this patch tested?
Tested using unit tests within another application
If numClasses is less than 2, it gives a array out of index error.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/guptesp/spark master
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/14310.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #14310
----
commit 8f1112f370032d3cbfbe0edf83eb72187d904664
Author: guptesp <[email protected]>
Date: 2016-07-21T22:45:20Z
Changes the numClasses check to !=2 (Line 306)
If numClasses is less than 2, it gives a array out of index error.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]