mlpack 3.4.2
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
18namespace mlpack {
19namespace data {
20
53template<typename eT>
54void 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
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.
Linear algebra utility functions, generally performed on matrices or vectors.
Definition: cv.hpp:1
The core includes that mlpack expects; standard C++ includes and Armadillo.