jlibsvm
jlibsvm copied to clipboard
How are `P` feature vectors evaluated (since they are of type Object)?
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!