mlpack 3.4.2
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
17namespace mlpack {
18namespace cv {
19
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
The Accuracy is a metric of performance for classification algorithms that is equal to a proportion o...
Definition: accuracy.hpp:26
static const bool NeedsMinimization
Information for hyper-parameter tuning code.
Definition: accuracy.hpp:44
static double Evaluate(MLAlgorithm &model, const DataType &data, const arma::Row< size_t > &labels)
Run classification and calculate accuracy.
Include all of the base components required to write mlpack methods, and the main mlpack Doxygen docu...
Linear algebra utility functions, generally performed on matrices or vectors.
Definition: cv.hpp:1