Skip to content
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

Help: ml_trainsvm error, 'The formats of all prediction arrays to concatenate need to be identical' #70

Open
KevMat18304 opened this issue Jul 28, 2020 · 1 comment

Comments

@KevMat18304
Copy link

Hi BCILAB,

I am trying to utilize the machine learning algorithm SVM. I chose the 'crammer' variant where I want to create a multi-class predictor that can decide between four motorimagery classes: "Left hand", "right hand", "left foot", and "right foot"; I ran the training script and got this error: "The Formats of all prediciton arrays to concatenate need to be identical". I am stumped, can someone help explain what I am doing wrong? and, what can I change?

Best,
KevMat

@EmileDeBiot
Copy link

Hi KevMat,

I feel the response is a bit late for you but maybe it will be useful for others.

I had the same problem using a different approach (different model: FBCSP and preprocessing). The solution I found is to add markers from the class that is less represented in your target markers. I feel this error occurs if there are not enough predictions for one type of target (maybe when computing mis-classification). I haven't dug to much to find why there is an error, but maybe this solution is enough <3

Best,
Emile.

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

No branches or pull requests

2 participants