thundersvm icon indicating copy to clipboard operation
thundersvm copied to clipboard

How can I compute the precision-recall cuvre with OCSVM?

Open RamziFsm opened this issue 5 years ago • 1 comments

sklearn.metrics.precision_recall_curve(y_true, probas_pred, *, pos_label=None, sample_weight=None) According to Sklearn, we should pass a probability prediction as a parameter for precision_recall_curve. But, the OCSVM doesn't have a function that returns a probability as output. How can I compute the precision-recall curve with OCSVM?

RamziFsm avatar Oct 01 '20 16:10 RamziFsm

ocsvm doesn't support probabilistic output, but it is possible to do by revising some code in C++. I have labelled this issue as "enhancement", and also call for contribution.

zeyiwen avatar Oct 02 '20 06:10 zeyiwen