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

Function train

tools/python/src/svm_c_trainer.cpp:17–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15
16template <typename trainer_type>
17typename trainer_type::trained_function_type train (
18 const trainer_type& trainer,
19 const std::vector<typename trainer_type::sample_type>& samples,
20 const std::vector<double>& labels
21)
22{
23 pyassert(is_binary_classification_problem(samples,labels), "Invalid inputs");
24 return trainer.train(samples, labels);
25}
26
27template <typename trainer_type>
28void set_epsilon ( trainer_type& trainer, double eps)

Callers 12

trainMethod · 0.85
trainMethod · 0.85
trainMethod · 0.85
trainMethod · 0.85
trainMethod · 0.85
trainMethod · 0.85
trainMethod · 0.85
trainMethod · 0.85
trainMethod · 0.85
trainMethod · 0.85
trainMethod · 0.85
mainFunction · 0.85

Calls 2

trainMethod · 0.45

Tested by 4

trainMethod · 0.68
trainMethod · 0.68
trainMethod · 0.68
trainMethod · 0.68