Xtra-Computing / thundersvm

ThunderSVM: A Fast SVM Library on GPUs and CPUs
Apache License 2.0
1.55k stars 215 forks source link

One Class SVM scores #225

Open mcamplaniROVCO opened 4 years ago

mcamplaniROVCO commented 4 years ago

Hello,

Is there any way to improve the documentation or clarifiy here how it is possible to obtain classification scores from ONE class SVM as in scikit-learn score_samples function. I found that a similar functionality is not available and this detail is quite hidden inside the documentation

zeyiwen commented 4 years ago

The python interface doesn't support the computation of scores, but you can obtain the score from the C++ code in Line 63 of https://github.com/Xtra-Computing/thundersvm/blob/master/src/thundersvm/model/oneclass_svc.cpp

It would be good if you or someone else can contribute to improving the python interface.

mcamplaniROVCO commented 4 years ago

Hello,

THanks for this, I think I will have a look at it soon!!!!

mcamplaniROVCO commented 4 years ago

Closed by mistake. Will close this when the feature is implemented