jlibsvm icon indicating copy to clipboard operation
jlibsvm copied to clipboard

How are `P` feature vectors evaluated (since they are of type Object)?

Open myrtleTree33 opened this issue 9 years ago • 0 comments

Hello,

I am trying to understand how jlibsvm works.

From the source code, I understand that L refers to label (e.g. of type String), while P refers to the feature vector for a particular data point. A collection of data points makes up a problem set.

A problem will be fed into an SVM classifier, to generate a model via train().

However, I am unclear since P can be any object (instead of an array of floats, for e.g.), how are comparisons made? Should there be some sort of comparable interface for each specified in this class?

Great library, by the way!

myrtleTree33 avatar Jul 07 '15 09:07 myrtleTree33