Class Accuracy

Synopsis

#include <include/thundersvm/util/metric.h>

class Accuracy : public Metric

Description

Accuracy.

Mentioned in

Inheritance

Ancestors: Metric

Methods

~Accuracy
nameCreated by jiashuai on 17-11-1.
score$\frac{#\text{correct}}{#\text{all}}$

Source

Lines 25-37 in include/thundersvm/util/metric.h.

class Accuracy : public Metric {
public:
    ~Accuracy() override = default;
    string name() override;

    /**
     * \f$\frac{#\text{correct}}{#\text{all}}\f$
     * @param predict_y
     * @param ground_truth_y
     * @return accuracy score
     */
    float_type score(const vector<float_type> &predict_y, const vector<float_type> &ground_truth_y) override;
};





Add Discussion as Guest

Log in to DocsForge