// Copyright (C) 2013 Davis E. King (davis@dlib.net) | |
// License: Boost Software License See LICENSE.txt for the full license. | |
struct binary_test | |
{ | |
binary_test() : class1_accuracy(0), class2_accuracy(0) {} | |
binary_test( | |
const dlib::matrix<double,1,2>& m | |
) : class1_accuracy(m(0)), | |
class2_accuracy(m(1)) {} | |
double class1_accuracy; | |
double class2_accuracy; | |
}; | |
struct regression_test | |
{ | |
regression_test() = default; | |
regression_test( | |
const dlib::matrix<double,1,4>& m | |
) : mean_squared_error(m(0)), | |
R_squared(m(1)), | |
mean_average_error(m(2)), | |
mean_error_stddev(m(3)) | |
{} | |
double mean_squared_error = 0; | |
double R_squared = 0; | |
double mean_average_error = 0; | |
double mean_error_stddev = 0; | |
}; | |
struct ranking_test | |
{ | |
ranking_test() : ranking_accuracy(0), mean_ap(0) {} | |
ranking_test( | |
const dlib::matrix<double,1,2>& m | |
) : ranking_accuracy(m(0)), | |
mean_ap(m(1)) {} | |
double ranking_accuracy; | |
double mean_ap; | |
}; | |