TheDigitalFrontier / parallel-decision-trees

Semester project in CS205 Computing Foundations for Computational Science at Harvard School of Engineering and Applied Sciences, spring 2020.
MIT License
3 stars 1 forks source link

Metrics structure and accuracy function #73

Closed johannes-kk closed 4 years ago

johannes-kk commented 4 years ago

Implemented as separate metrics.cpp and metrics.hpp, but without wrapping inside a Class. so far only separate functions, as they merely take two DataVector as parameters and return some double scoring metric. Seemed unnecessary to have to declare a metric object before simple calculations like accuracy or precision can be performed on targets vs predictions. Open to changes, though.