-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiclass LDA bounds error #187
Comments
Apparently, when the number of classes is less then the number of labels, class statistics cannot be calculated because of the above error. I do not know whether it's a bug or not. It's an old implementation. I have to look closer. BTW, why do you try to specify reduced number of classes? |
Thanks for getting back to me. Perhaps I misunderstand the theory behind a multiclass LDA. If one has 3 classes, like in Palmer's Penguins (one for each species), each penguin is labelled 1:3 corresponding to a class, then how can you perform LDA on more classes? I might be misunderstanding the concept of a class in this application. |
After the code review, I see following problems:
Because of the above, you got an error. In MC-LDA implementation, the number of labels should have been interpreted as the number of classes. Because, there is no such check on So, if you want work with 16 classes, as in your example, remove samples of one class from your data. If your class labels are not numbered from 1 to |
…ique labels. Fixes JuliaStats#187.
Hello, I seem to be having difficulty getting the MulticlassLDA functioning properly. I have an input matrix, specify the number of classes, and have labels corresponding to each column, but keep getting BoundsErrors:
No matter what I set the number of classes
nc
to, it always gives a BoundsError, where the column index is 1+nc
Is this somehow a user error on my part, or is it possible there is a bug?
The text was updated successfully, but these errors were encountered: