| 144 | typename trainer_type |
| 145 | > |
| 146 | const 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 |
nothing calls this directly
no test coverage detected