From b5f8ee61a7f7e9bd291dd26b0585d03eb686c941 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 5 May 2024 13:19:16 +0200 Subject: Adding upstream version 1.46.3. Signed-off-by: Daniel Baumann --- ml/dlib/tools/python/src/testing_results.h | 50 ------------------------------ 1 file changed, 50 deletions(-) delete mode 100644 ml/dlib/tools/python/src/testing_results.h (limited to 'ml/dlib/tools/python/src/testing_results.h') diff --git a/ml/dlib/tools/python/src/testing_results.h b/ml/dlib/tools/python/src/testing_results.h deleted file mode 100644 index 746e2934a..000000000 --- a/ml/dlib/tools/python/src/testing_results.h +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (C) 2013 Davis E. King (davis@dlib.net) -// License: Boost Software License See LICENSE.txt for the full license. -#ifndef DLIB_TESTING_ReSULTS_H__ -#define DLIB_TESTING_ReSULTS_H__ - -#include - -struct binary_test -{ - binary_test() : class1_accuracy(0), class2_accuracy(0) {} - binary_test( - const dlib::matrix& 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& 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& m - ) : ranking_accuracy(m(0)), - mean_ap(m(1)) {} - - double ranking_accuracy; - double mean_ap; -}; - -#endif // DLIB_TESTING_ReSULTS_H__ - -- cgit v1.2.3