confusion_matrix.hpp
Go to the documentation of this file.
1 
13 #ifndef MLPACK_CORE_DATA_CONFUSION_MATRIX_HPP
14 #define MLPACK_CORE_DATA_CONFUSION_MATRIX_HPP
15 
16 #include <mlpack/prereqs.hpp>
17 
18 namespace mlpack {
19 namespace data {
20 
53 template<typename eT>
54 void ConfusionMatrix(const arma::Row<size_t> predictors,
55  const arma::Row<size_t> responses,
56  arma::Mat<eT>& output,
57  const size_t numClasses);
58 
59 } // namespace data
60 } // namespace mlpack
61 
62 // Include implementation.
63 #include "confusion_matrix_impl.hpp"
64 
65 #endif
Linear algebra utility functions, generally performed on matrices or vectors.
The core includes that mlpack expects; standard C++ includes and Armadillo.
constexpr auto data(Container const &container) noexcept -> decltype(container.data())
Definition: iterator.hpp:79
void ConfusionMatrix(const arma::Row< size_t > predictors, const arma::Row< size_t > responses, arma::Mat< eT > &output, const size_t numClasses)
A confusion matrix is a summary of prediction results on a classification problem.