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

Function py_count_steps_without_decrease

tools/python/src/other.cpp:81–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79// ----------------------------------------------------------------------------------------
80
81size_t py_count_steps_without_decrease (
82 py::object arr,
83 double probability_of_decrease
84)
85{
86 DLIB_CASSERT(0.5 < probability_of_decrease && probability_of_decrease < 1);
87 return count_steps_without_decrease(python_list_to_vector<double>(arr), probability_of_decrease);
88}
89
90// ----------------------------------------------------------------------------------------
91

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected