-
Notifications
You must be signed in to change notification settings - Fork 35
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
Binary LDA classifier throws error when trying to return probabilities per class #49
Comments
Hi @benjybarnett , the problem occurs because one of LDA hyperparameters ( However, in this case it makes sense to actually adapt the default value for LDA, which I now included in |
Hi @treder thanks for looking into this! I see that I should have specified that now..however addressing that with my own cfg.hyperparameter.prob = 1 call or pulling the latest version just causes the following error to appear:
This is following the same code snippet as before. Cheers! |
I see - I think you have more features than samples right? The problem is that by default LDA chooses the dual form of the solution which has no covariance matrix (but it's needed for the probability calculation). So you would also have to set |
ah - thank you very much :) |
Hi. I am trying to run a simple binary cross-decoding analysis, and I would like classifier output to show the predicted class probabilities.
I am using the following code:
But I receive the following error:
It looks like the test_LDA function cannot compute the probability. I think because the code in mv_classify is failing to pass on the correct output_type. Although I can't quite figure it out. Would appreciate any insights!
The text was updated successfully, but these errors were encountered: