| 37 | |
| 38 | template <typename trainer_type> |
| 39 | typename 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 | |
| 49 | template <typename trainer_type> |
| 50 | typename trainer_type::trained_function_type train2 ( |
nothing calls this directly
no test coverage detected