9 #ifndef MKNN_EVALUATION_GROUND_TRUTH_HPP
10 #define MKNN_EVALUATION_GROUND_TRUTH_HPP
16 #include "../metricknn_impl.hpp"
19 template<
typename TypeQuery,
typename TypeCategory,
typename TypeObject>
class MknnGroundTruth {
23 void addCorrectAnswer(TypeQuery id_query, TypeCategory id_category);
24 void addCategoryObject(TypeCategory id_category, TypeObject id_object);
25 long long getTotalQueries();
26 long long getTotalCategories();
27 long long getTotalObjects();
28 void getCategoriesQuery(TypeQuery id_query,
29 std::set<TypeCategory> &list_id_categories);
30 void getCategoriesObject(TypeObject id_object,
31 std::set<TypeCategory> &list_id_categories);
32 void getObjectsCategory(TypeCategory id_category,
33 std::set<TypeObject> &list_id_object);
34 void getQueriesCategory(TypeCategory id_category,
35 std::set<TypeQuery> &list_id_queries);
36 std::set<TypeCategory> getCategories();
39 std::map<TypeQuery, std::set<TypeCategory>> list_categories_by_query;
40 std::map<TypeCategory, std::set<TypeObject>> list_objects_by_category;
41 std::map<TypeQuery, std::set<TypeObject>> list_queries_by_category;
42 std::map<TypeObject, std::set<TypeCategory>> list_categories_by_object;
Definition: mevaluation_answers.hpp:18
Definition: mevaluation_groundtruth.hpp:19