Project
WeightUpdater.h
Go to the documentation of this file.
1 #ifndef WEIGHTUPDATER_H
2 #define WEIGHTUPDATER_H
3 
10 #include "../app.h"
11 #include "spdlog/spdlog.h"
12 
13 #include "../types/AlternativesPerformance.h"
14 #include "../types/MRSortModel.h"
15 #include "LinearSolver.h"
16 
34 public:
43 
50 
51  ~WeightUpdater();
52 
60 
74  std::vector<std::vector<std::vector<bool>>>
76 
90  std::vector<std::vector<std::vector<bool>>>
92 
101  bool modelCheck(MRSortModel &model);
102 
103 private:
104  LinearSolver solver;
106  Config &conf;
107 };
108 
109 #endif
External linear solver wrapper.
Dataset datastructure.
Definition: AlternativesPerformance.h:35
External linear solver wrapper.
Definition: LinearSolver.h:35
Datastructure of the model to learn.
Definition: MRSortModel.h:37
Weight and Lambda update heuristic.
Definition: WeightUpdater.h:33
WeightUpdater(const WeightUpdater &wu)
WeightUpdater(AlternativesPerformance &ap, Config &conf)
std::vector< std::vector< std::vector< bool > > > computeXMatrix(MRSortModel &model)
std::vector< std::vector< std::vector< bool > > > computeYMatrix(MRSortModel &model)
void updateWeightsAndLambda(MRSortModel &model)
bool modelCheck(MRSortModel &model)
High level configuration of the app.
Definition: config.h:20