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
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 Accuracy is a metric of performance for classification algorithms that is equal to a proportion o...
Definition: accuracy.hpp:25
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:44