MCPcopy Create free account
hub / github.com/davisking/dlib / operator()

Method operator()

dlib/svm/function_abstract.h:287–304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

285 !*/
286
287 result_type operator() (
288 const sample_type& x
289 ) const
290 /*!
291 ensures
292 - returns a number P such that:
293 - 0 <= P <= 1
294 - P represents the probability that sample x is from
295 the class +1
296 !*/
297 {
298 // Evaluate the normal decision function
299 result_type f = decision_funct(x);
300 // Now basically normalize the output so that it is a properly
301 // conditioned probability of x being in the +1 class given
302 // the output of the decision function.
303 return 1/(1 + std::exp(alpha*f + beta));
304 }
305 };
306
307 template <

Callers

nothing calls this directly

Calls 1

expFunction · 0.85

Tested by

no test coverage detected