fixed ComputeAccuracy() function to fix tests

This commit is contained in:
Ayush
2019-04-07 22:05:07 -04:00
committed by Ryan Curtin
parent 92b5632d70
commit c7eedd70ef
@@ -152,8 +152,8 @@ const
if (testLabels(i) == labels(i))
count++;
// Return percentage accuracy
return count / labels.n_elem;
// Return the accuracy.
return (double)count / labels.n_elem;
}
} // namespace svm