Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

LIBLINEAR/LIBSVM "Wrong input format at line 1"

Hi i need help with my input file: checkdata.py return with "No errors" but still something is wrong. My first line looks like:

+1 1:-1 2:-1 3:0.737705 4:1 5:0.737705 6:-0.959596 7:-0.757576 9:0.6875 10:0.487179 11:-0.6 12:-1 13:-0.27907 14:0.171717 15:0.777778 15:0.777778 16:-1 17:-0.463984 18:1 19:-1 20:-1 21:-0.75 22:-0.75 23:-0.75 24:-0.75 25:-0.75 26:-0.75 27:-0.75 28:-0.75 29:-0.75 30:-0.75 31:-0.75 32:-0.75 33:-1 34:-0.75 35:-0.75 36:-0.75 37:-0.75 38:-1 39:-0.75 40:-1 41:0.75 42:-1 43:1 44:1 45:1 46:1 47:1 49:1 50:1 51:1 

Thanks for the help

like image 263
Philipp Avatar asked Oct 09 '22 09:10

Philipp


1 Answers

The label 15 appears twice - checkdata.py really should be checking this, it cost me 2 hours.

like image 136
Philipp Avatar answered Oct 12 '22 09:10

Philipp