MCPcopy Create free account
hub / github.com/PDAL/PDAL / getAccuracy

Function getAccuracy

kernels/EvalKernel.hpp:144–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142 }
143
144 double getAccuracy(int label)
145 {
146 return ((double)getTruePositives(label) +
147 (double)getTrueNegatives(label)) /
148 (double)m_confusionMatrix.topRows(m_dim).sum();
149 }
150
151 double getOverallAccuracy()
152 {

Callers

nothing calls this directly

Calls 2

getTruePositivesFunction · 0.85
getTrueNegativesFunction · 0.85

Tested by

no test coverage detected