9 #ifndef MKNN_EVALUATION_EVAL_HPP
10 #define MKNN_EVALUATION_EVAL_HPP
18 #include "../metricknn_impl.hpp"
21 class MknnQueryEvaluation;
22 class MknnCategoryEvaluation;
24 template<
typename TypeQuery,
typename TypeCategory,
typename TypeObject>
29 void print(std::string filename_output, std::string file_header_text);
36 TypeCategory id_category);
40 long long expected_corrects;
41 std::vector<long long> corrects_at_rank;
42 std::vector<double> precision_at_rank;
43 double mean_average_precision, mean_average_rank;
44 double average_precision_first, average_rank_first;
45 std::map<TypeQuery, MknnQueryEvaluation> evaluationByQuery;
46 std::map<TypeCategory, MknnCategoryEvaluation> evaluationByCategory;
53 long long num_categories_expected;
54 long long num_categories_found;
55 long long num_categories_missed;
56 long long num_objects_expected;
57 long long num_objects_found;
58 long long num_objects_missed;
59 double average_precision, average_rank;
60 double precision_first, rank_first;
63 template<
typename A,
typename B,
typename C>
70 long long num_queries;
71 long long num_objects_expected;
72 double queries_mean_average_precision, queries_mean_average_rank;
73 double queries_average_precision_first, queries_average_rank_first;
75 template<
typename A,
typename B,
typename C>
Definition: mevaluation_eval.hpp:66
Definition: mevaluation_eval.hpp:25
Definition: mevaluation_answers.hpp:47
Definition: mevaluation_answers.hpp:18
Definition: mevaluation_eval.hpp:49
Definition: mevaluation_groundtruth.hpp:19