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

Wrong input format at line 1 The following message is displayed. #6

Open
hitobito2009 opened this issue Jan 8, 2022 · 2 comments
Open

Comments

@hitobito2009
Copy link

Hello ...
I currently want to perform SVM using 2d point cloud data.
I have acquired the data myself and created the dataset to match LibSVM, but it says that the input format is wrong.
Is this dataset wrong?
This is the first line of the dataset.

1 1:-0.893290 2:-0.109680 3:0.000000 4:-0.879160 5:-0.092400 6:0.000000 7:-0.874660 8:-0.076520 9:0.000000 10:-0.861900 11:-0.060270 12:0.000000 13:-0.861820 14:-0.045170 15:0.000000 16:-0.853480 17:-0.029800 18:0.000000 19:-0.846870 20:-0.014780 21:0.000000 22:-0.834000 23:-0.000000 24:0.000000 25:-0.827870 26:0.014450 27:0.000000 28:-0.814500 29:0.028440 30:0.000000 31:-0.810890 32:0.042500 33:0.000000 34:-0.803040 35:0.056150 36:0.000000 37:-0.799940 38:0.069990 39:0.000000 40:-0.811530 41:0.085300 42:0.000000 43:-0.833740 44:0.102370 45:0.000000 46:-0.838760 47:0.117880 48:0.000000 49:-0.860280 50:0.136250 51:0.000000 52:-0.868600 53:0.153160 54:0.000000 55:-0.880520 56:0.171160 57:0.000000 58:-0.884250 59:0.187950 60:0.000000 61:-0.883750 62:0.204030 63:0.000000 64:-0.901400 65:0.224750 66:0.000000

@bellonemauro
Copy link
Owner

Apologies.
I cannot give any suggestion based on this line only.
Check with the data available here https://github.com/bellonemauro/SVM_pcl_demo/blob/master/Data/example1/test.dat and try to fit to this format (maybe you can check endline encoding issues).

@hitobito2009
Copy link
Author

Thank you for your suggestion.
I used "chechdata.py" published by LIBSVM, and found that it does not follow the format in another place than the first line.
Thank you.

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