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

Function set_gamma

tools/python/src/svm_c_trainer.cpp:109–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107
108template <typename trainer_type>
109void set_gamma (
110 trainer_type& trainer,
111 double gamma
112)
113{
114 pyassert(gamma > 0, "gamma must be > 0");
115 trainer.set_kernel(typename trainer_type::kernel_type(gamma));
116}
117
118template <typename trainer_type>
119double get_gamma (

Callers

nothing calls this directly

Calls 1

set_kernelMethod · 0.45

Tested by

no test coverage detected