Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is order of features in LibSVM feature vectors important?

Tags:

svm

libsvm

I am considering using LibSVM and I am creating the required feature vectors. In almost all the example data there is an order for the features for example:

+1 1:3 2:1 3:5 4:2 10:8

Was wondering if this ordering is important, for example:

+1 4:2 10:8 2:1 1:3 3:5

Thanks

like image 497
Hossein Avatar asked Jan 19 '12 16:01

Hossein


1 Answers

Although both of your notations are equivalent, LibSVM requires the Feature-IDs to be sorted ascendingly - I suppose this has I/O-reasons.

like image 82
Fluchtpunkt Avatar answered Oct 17 '22 18:10

Fluchtpunkt