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

Method operator()

dlib/svm/function_abstract.h:175–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173 !*/
174
175 result_type operator() (
176 const sample_type& x
177 ) const
178 /*!
179 ensures
180 - returns a number P such that:
181 - 0 <= P <= 1
182 - P represents the probability that sample x is from
183 the class +1
184 !*/
185 {
186 // Evaluate the normal decision function
187 result_type f = decision_funct(x);
188 // Now basically normalize the output so that it is a properly
189 // conditioned probability of x being in the +1 class given
190 // the output of the decision function.
191 return 1/(1 + std::exp(alpha*f + beta));
192 }
193 };
194
195 template <

Callers

nothing calls this directly

Calls 1

expFunction · 0.85

Tested by

no test coverage detected