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 #include <mlpack/prereqs.hpp>
17 
18 namespace mlpack {
19 namespace cv {
20 
26 class Accuracy
27 {
28  public:
36  template<typename MLAlgorithm, typename DataType>
37  static double Evaluate(MLAlgorithm& model,
38  const DataType& data,
39  const arma::Row<size_t>& labels);
40 
45  static const bool NeedsMinimization = false;
46 };
47 
48 } // namespace cv
49 } // namespace mlpack
50 
51 // Include implementation.
52 #include "accuracy_impl.hpp"
53 
54 #endif
static double Evaluate(MLAlgorithm &model, const DataType &data, const arma::Row< size_t > &labels)
Run classification and calculate accuracy.
Linear algebra utility functions, generally performed on matrices or vectors.
The core includes that mlpack expects; standard C++ includes and Armadillo.
The Accuracy is a metric of performance for classification algorithms that is equal to a proportion o...
Definition: accuracy.hpp:26
constexpr auto data(Container const &container) noexcept -> decltype(container.data())
Definition: iterator.hpp:79
Include all of the base components required to write mlpack methods, and the main mlpack Doxygen docu...
static const bool NeedsMinimization
Information for hyper-parameter tuning code.
Definition: accuracy.hpp:45