12 #ifndef MLPACK_CORE_CV_METRICS_FACILITIES_HPP
13 #define MLPACK_CORE_CV_METRICS_FACILITIES_HPP
28 template<
typename DataType>
30 const arma::Row<size_t>& labels,
31 const std::string& callerDescription)
33 if (data.n_cols != labels.n_elem)
35 std::ostringstream oss;
36 oss << callerDescription <<
": number of points (" << data.n_cols <<
") "
37 <<
"does not match number of labels (" << labels.n_elem <<
")!"
39 throw std::invalid_argument(oss.str());