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

Function py_count_steps_without_decrease_robust

tools/python/src/other.cpp:92–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90// ----------------------------------------------------------------------------------------
91
92size_t py_count_steps_without_decrease_robust (
93 py::object arr,
94 double probability_of_decrease,
95 double quantile_discard
96)
97{
98 DLIB_CASSERT(0.5 < probability_of_decrease && probability_of_decrease < 1);
99 DLIB_CASSERT(0 <= quantile_discard && quantile_discard <= 1);
100 return count_steps_without_decrease_robust(python_list_to_vector<double>(arr), probability_of_decrease, quantile_discard);
101}
102
103// ----------------------------------------------------------------------------------------
104

Callers

nothing calls this directly

Tested by

no test coverage detected