MCPcopy Create free account
hub / github.com/Xtra-Computing/thundersvm / name

Method name

src/thundersvm/util/metric.cpp:6–8  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4#include <thundersvm/util/metric.h>
5
6string Accuracy::name() {
7 return "Accuracy";
8}
9
10float_type Accuracy::score(const vector<float_type> &predict_y, const vector<float_type> &ground_truth_y) {
11 int n_correct = 0;

Callers 6

mainFunction · 0.80
train_RFunction · 0.80
predict_RFunction · 0.80
thundersvm_train_subFunction · 0.80
thundersvm_predict_subFunction · 0.80
mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected