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

Function set_bias

tools/python/src/decision_functions.cpp:259–270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257
258template <typename df_type>
259void set_bias(
260 df_type& df,
261 double b
262)
263{
264 if (df.basis_vectors.size() == 0)
265 {
266 PyErr_SetString( PyExc_ValueError, "Decision function is empty." );
267 throw py::error_already_set();
268 }
269 df.b = b;
270}
271
272template <typename kernel_type>
273void add_linear_df (

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected