SOMHunter Core
relocation-ranker.h
Go to the documentation of this file.
1 /* This file is part of SOMHunter.
2  *
3  * Copyright (C) 2021 Frantisek Mejzlik <frankmejzlik@protonmail.com>
4  * Mirek Kratochvil <exa.exa@gmail.com>
5  * Patrik Vesely <prtrikvesely@gmail.com>
6  *
7  * SOMHunter is free software: you can redistribute it and/or modify it under
8  * the terms of the GNU General Public License as published by the Free
9  * Software Foundation, either version 2 of the License, or (at your option)
10  * any later version.
11  *
12  * SOMHunter is distributed in the hope that it will be useful, but WITHOUT ANY
13  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14  * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
15  * details.
16  *
17  * You should have received a copy of the GNU General Public License along with
18  * SOMHunter. If not, see <https://www.gnu.org/licenses/>.
19  */
20 
21 #ifndef RELOCATION_RANKER_H_
22 #define RELOCATION_RANKER_H_
23 
24 #include <cassert>
25 #include <fstream>
26 #include <iomanip>
27 #include <map>
28 #include <set>
29 #include <string>
30 #include <vector>
31 
32 #include "common.h"
33 
34 #include "dataset-frames.h"
35 #include "embedding-ranker.h"
36 #include "query-types.h"
37 #include "scores.h"
38 #include "settings.h"
39 #include "utils.hpp"
40 
41 namespace sh {
42 class RelocationRanker : public EmbeddingRanker<PrimaryFrameFeatures> {
43 public:
44  void score(const RelocationQuery&, ScoreModel& model, size_t temporal,
45  const PrimaryFrameFeatures& _dataset_features) const;
46 };
47 } // namespace sh
48 
49 #endif // RELOCATION_H_
Definition: embedding-ranker.h:43
Definition: relocation-ranker.h:42
void score(const RelocationQuery &, ScoreModel &model, size_t temporal, const PrimaryFrameFeatures &_dataset_features) const
Definition: relocation-ranker.cpp:28
Definition: scores.h:34
Definition: common-types.h:33
FrameId RelocationQuery
Definition: query-types.h:157