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