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

Function normalized_predict_vec

tools/python/src/decision_functions.cpp:118–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116
117template <typename decision_function>
118std::vector<double> normalized_predict_vec (
119 const normalized_function<decision_function>& df,
120 const std::vector<typename decision_function::kernel_type::sample_type>& samps
121)
122{
123 std::vector<double> out;
124 out.reserve(samps.size());
125 for (const auto& x : samps)
126 out.push_back(normalized_predict(df,x));
127 return out;
128}
129
130template <typename decision_function>
131py::array_t<double> normalized_predict_np_vec (

Callers

nothing calls this directly

Calls 4

normalized_predictFunction · 0.85
reserveMethod · 0.45
sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected