| 230 | |
| 231 | template <typename df_type> |
| 232 | typename 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 | |
| 245 | template <typename df_type> |
| 246 | typename df_type::scalar_type get_bias( |
nothing calls this directly
no test coverage detected