Skip to content

How to input testImages I have #2

@Pramod07777

Description

@Pramod07777

Hi anujdutt9 thank you for this awesome project,can you please help me on below..As i have converted my sample into MNIST DATASET Image after that i converted to grayscale still i got below error can you please revert on this.

Traceback (most recent call last):
File "svm.py", line 88, in
test_labels_pred = clf.predict(im)
File "/usr/local/lib/python3.5/dist-packages/sklearn/svm/base.py", line 573, in predict
y = super(BaseSVC, self).predict(X)
File "/usr/local/lib/python3.5/dist-packages/sklearn/svm/base.py", line 310, in predict
X = self._validate_for_predict(X)
File "/usr/local/lib/python3.5/dist-packages/sklearn/svm/base.py", line 479, in validate_for_predict
(n_features, self.shape_fit
[1]))
ValueError: X.shape[1] = 800 should be equal to 784, the number of features at training time

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions