| 129 | typename trainer_type |
| 130 | > |
| 131 | const 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 | |
| 143 | template < |
| 144 | typename trainer_type |
nothing calls this directly
no test coverage detected