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

Function _cross_validate_trainer_t

tools/python/src/svm_c_trainer.cpp:146–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144 typename trainer_type
145 >
146const binary_test _cross_validate_trainer_t (
147 const trainer_type& trainer,
148 const std::vector<typename trainer_type::sample_type>& x,
149 const std::vector<double>& y,
150 const unsigned long folds,
151 const unsigned long num_threads
152)
153{
154 pyassert(is_binary_classification_problem(x,y), "Training data does not make a valid training set.");
155 pyassert(1 < folds && folds <= x.size(), "Invalid number of folds given.");
156 pyassert(1 < num_threads, "The number of threads specified must not be zero.");
157 return cross_validate_trainer_threaded(trainer, x, y, folds, num_threads);
158}
159
160// ----------------------------------------------------------------------------------------
161

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.45

Tested by

no test coverage detected