mlpack
3.4.2
mlpack-3.4.2
src
mlpack
core
cv
metrics
accuracy.hpp
Go to the documentation of this file.
1
12
#ifndef MLPACK_CORE_CV_METRICS_ACCURACY_HPP
13
#define MLPACK_CORE_CV_METRICS_ACCURACY_HPP
14
15
#include <
mlpack/core.hpp
>
16
17
namespace
mlpack
{
18
namespace
cv {
19
25
class
Accuracy
26
{
27
public
:
35
template
<
typename
MLAlgorithm,
typename
DataType>
36
static
double
Evaluate
(MLAlgorithm& model,
37
const
DataType& data,
38
const
arma::Row<size_t>& labels);
39
44
static
const
bool
NeedsMinimization
=
false
;
45
};
46
47
}
// namespace cv
48
}
// namespace mlpack
49
50
// Include implementation.
51
#include "accuracy_impl.hpp"
52
53
#endif
mlpack
Linear algebra utility functions, generally performed on matrices or vectors.
Definition:
add_to_cli11.hpp:21
mlpack::cv::Accuracy::Evaluate
static double Evaluate(MLAlgorithm &model, const DataType &data, const arma::Row< size_t > &labels)
Run classification and calculate accuracy.
mlpack::cv::Accuracy::NeedsMinimization
static const bool NeedsMinimization
Information for hyper-parameter tuning code.
Definition:
accuracy.hpp:44
core.hpp
Include all of the base components required to write mlpack methods, and the main mlpack Doxygen docu...
mlpack::cv::Accuracy
The Accuracy is a metric of performance for classification algorithms that is equal to a proportion o...
Definition:
accuracy.hpp:26
Generated by
1.8.20