Home
Get Started
Documentation
Community
Google Summer of Code
FAQ
GitHub
Home
Get Started
Documentation
Community
Google Summer of Code
FAQ
GitHub
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
predictors,
55
const
arma::Row
responses,
56
arma::Mat
& 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
mlpack
Linear algebra utility functions, generally performed on matrices or vectors.
Definition:
add_to_cli11.hpp:21
prereqs.hpp
The core includes that mlpack expects; standard C++ includes and Armadillo.
mlpack::data::ConfusionMatrix
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.