MCPcopy Create free account
hub / github.com/davisking/dlib / get_bias

Function get_bias

tools/python/src/decision_functions.cpp:246–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244
245template <typename df_type>
246typename df_type::scalar_type get_bias(
247 const df_type& df
248)
249{
250 if (df.basis_vectors.size() == 0)
251 {
252 PyErr_SetString( PyExc_ValueError, "Decision function is empty." );
253 throw py::error_already_set();
254 }
255 return df.b;
256}
257
258template <typename df_type>
259void set_bias(

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected