Closed AtlantixJJ closed 4 years ago
@AtlantixJJ Is your face segmentation problem a binary classification
problem, regression
problem or a one-class classification
problem? If your problem is a binary classification problem, you shouldn't use OneClassSVM
.
I believe the Liblinear you used is for binary classification.
Hi, I tried to train a face segmentation using ThunderSVM but the result is very bad. I compare it to an implementation using LibLinear and found that the latter succeed.
The only differences in code are two segments below:
The result in shown below:
Image:
ThunderSVM (odd images are labels, even images are predictions):
LibLinear (the same):
LibLinear works out perfectly while ThunderSVM fails.
The feature shape is:
I normalized the feature to have L2 norm 1.
Is there some issues in the implementation for
OneClassSVM
linear kernel or I miss something to run it correctly?Upate: SVC seems ok. Maybe you can look into OneClassSVM.