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());
void AssertSizes(const DataType &data, const arma::Row< size_t > &labels, const std::string &callerDescription)
Assert there is the same number of the given data points and labels.
Include all of the base components required to write mlpack methods, and the main mlpack Doxygen docu...