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

Function train2

tools/python/src/svm_rank_trainer.cpp:50–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48
49template <typename trainer_type>
50typename trainer_type::trained_function_type train2 (
51 const trainer_type& trainer,
52 const std::vector<ranking_pair<typename trainer_type::sample_type> >& samples
53)
54{
55 pyassert(is_ranking_problem(samples), "Invalid inputs");
56 return trainer.train(samples);
57}
58
59template <typename trainer_type>
60void set_epsilon ( trainer_type& trainer, double eps)

Callers

nothing calls this directly

Calls 2

is_ranking_problemFunction · 0.85
trainMethod · 0.45

Tested by

no test coverage detected