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

Function _cross_validate_trainer

tools/python/src/svm_c_trainer.cpp:131–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129 typename trainer_type
130 >
131const binary_test _cross_validate_trainer (
132 const trainer_type& trainer,
133 const std::vector<typename trainer_type::sample_type>& x,
134 const std::vector<double>& y,
135 const unsigned long folds
136)
137{
138 pyassert(is_binary_classification_problem(x,y), "Training data does not make a valid training set.");
139 pyassert(1 < folds && folds <= x.size(), "Invalid number of folds given.");
140 return cross_validate_trainer(trainer, x, y, folds);
141}
142
143template <
144 typename trainer_type

Callers

nothing calls this directly

Calls 3

cross_validate_trainerFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected