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

Function get_weights

tools/python/src/decision_functions.cpp:232–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230
231template <typename df_type>
232typename df_type::sample_type get_weights(
233 const df_type& df
234)
235{
236 if (df.basis_vectors.size() == 0)
237 {
238 PyErr_SetString( PyExc_ValueError, "Decision function is empty." );
239 throw py::error_already_set();
240 }
241 df_type temp = simplify_linear_decision_function(df);
242 return temp.basis_vectors(0);
243}
244
245template <typename df_type>
246typename df_type::scalar_type get_bias(

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45

Tested by

no test coverage detected