Skip to content

Conversation

@guptesp
Copy link

@guptesp guptesp commented Jul 21, 2016

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.

If numClasses is less than 2, it gives a array out of index error.
@AmplabJenkins
Copy link

Can one of the admins verify this patch?

@srowen
Copy link
Member

srowen commented Jul 22, 2016

No, this is wrong. It handles numClasses == 1 later (though it's an odd case). This would make it always fail in this case. Please close.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants