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

LinearSVC fit error #4

Open
arnonkahani opened this issue Mar 1, 2016 · 2 comments
Open

LinearSVC fit error #4

arnonkahani opened this issue Mar 1, 2016 · 2 comments

Comments

@arnonkahani
Copy link

Hi,
I keep getting: ValueError: setting an array element with a sequence.
When the line: clf.fit(fds, labels) tries to run.
Do you have any idea what am I doing wrong?

Thanks in advance

@ranveeraggarwal
Copy link

This generally happens when the sizes of your feature vectors aren't the same.
All your fds should be of the same size, meaning that all your training images must be of the same dimensions.
If you directly cloned this repo without downloading the dataset, you might face the same issue.

@HenryJunW
Copy link

Can you elaborate a little bit more? I still got the error 'ValueError: X has 324 features per sample; expecting 2430'

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

3 participants