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

Function train1

tools/python/src/svm_rank_trainer.cpp:39–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37
38template <typename trainer_type>
39typename trainer_type::trained_function_type train1 (
40 const trainer_type& trainer,
41 const ranking_pair<typename trainer_type::sample_type>& sample
42)
43{
44 typedef ranking_pair<typename trainer_type::sample_type> st;
45 pyassert(is_ranking_problem(std::vector<st>(1, sample)), "Invalid inputs");
46 return trainer.train(sample);
47}
48
49template <typename trainer_type>
50typename trainer_type::trained_function_type train2 (

Callers

nothing calls this directly

Calls 2

is_ranking_problemFunction · 0.85
trainMethod · 0.45

Tested by

no test coverage detected