salesforce/TransmogrifAI

why does not linear svc model contain "probability"s in the output of "score()" function?

liuxiaodong008008 opened this issue · 1 comments

I found linear svc model does not contain probabilitys in the output of score() function.
And if linear svc does not have probabilitys, how do TransmogrifAI calculate AuRoC in the summary()?

The probability is not provided by the underlying LinearSVCModel Spark model and therefore is not produced.

When computing metrics such as aupr, auroc, error, precision, recall, f1, only the label, prediction and raw prediction values are being used. E.g. - https://github.com/salesforce/TransmogrifAI/blob/master/core/src/main/scala/com/salesforce/op/evaluators/OpBinaryClassificationEvaluator.scala#L126)