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.
Implemented as separate
metrics.cpp
andmetrics.hpp
, but without wrapping inside a Class. so far only separate functions, as they merely take twoDataVector
as parameters and return somedouble
scoring metric. Seemed unnecessary to have to declare ametric
object before simple calculations likeaccuracy
orprecision
can be performed ontargets
vspredictions
. Open to changes, though.