MCPcopy Create free account
hub / github.com/audeering/opensmile / sigmoid_predict

Function sigmoid_predict

scripts/modeltrain/libsvm-small/svm.cpp:1827–1834  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1825}
1826
1827double sigmoid_predict(double decision_value, double A, double B)
1828{
1829 double fApB = decision_value*A+B;
1830 if (fApB >= 0)
1831 return exp(-fApB)/(1.0+exp(-fApB));
1832 else
1833 return 1.0/(1+exp(fApB)) ;
1834}
1835
1836// Method 2 from the multiclass_prob paper by Wu, Lin, and Weng
1837void multiclass_probability(int k, double **r, double *p)

Callers 1

svm_predict_probabilityFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected