33 #ifndef SHARK_OBJECTIVEFUNCTIONS_LOSS_ABSOLUTELOSS_H 34 #define SHARK_OBJECTIVEFUNCTIONS_LOSS_ABSOLUTELOSS_H 49 template<
class VectorType = RealVector>
64 {
return "AbsoluteLoss"; }
71 double eval(BatchLabelType
const& labels, BatchOutputType
const& predictions)
const{
72 SIZE_CHECK(labels.size1() == predictions.size1());
73 SIZE_CHECK(labels.size2() == predictions.size2());
76 for(std::size_t i = 0; i != labels.size1(); ++i){