1 #ifndef PROFILEUPDATER_H
2 #define PROFILEUPDATER_H
15 #include "../types/MRSortModel.h"
39 float epsilon = 0.00001);
66 std::unordered_map<float, float>
69 std::unordered_map<std::string, float> &ct_prof,
88 std::unordered_map<float, float>
91 std::unordered_map<std::string, float> &ct_prof,
103 std::pair<float, float>
123 std::unordered_map<std::string, std::unordered_map<std::string, float>>
141 std::unordered_map<std::string, std::unordered_map<std::string, float>>
154 std::unordered_map<std::string,
155 std::unordered_map<std::string, float>> &ct,
Category datastructure.
Definition: Category.h:20
Datastructure of the model to learn.
Definition: MRSortModel.h:37
Perf (single performance) data structure.
Definition: Perf.h:22
Third step of the heuristic, updates the profiles given fixed weight and lambda.
Definition: ProfileUpdater.h:29
void updateProfiles(MRSortModel &model)
std::unordered_map< float, float > computeBelowDesirability(MRSortModel &model, std::string critId, Perf &b, Perf &b_below, Category &cat, Category &cat_above, std::unordered_map< std::string, float > &ct_prof, AlternativesPerformance &altPerf_model)
std::pair< float, float > chooseMaxDesirability(std::unordered_map< float, float > &desirability, Perf &b)
void optimizeProfile(std::vector< Perf > &prof, Category &cat_below, Category &cat_above, MRSortModel &model, std::unordered_map< std::string, std::unordered_map< std::string, float >> &ct, AlternativesPerformance &altPerf_model)
ProfileUpdater(const ProfileUpdater &profUp)
void optimize(MRSortModel &model, std::unordered_map< std::string, std::unordered_map< std::string, float >> &ct, AlternativesPerformance &altPerf_model)
ProfileUpdater(Config &conf, AlternativesPerformance &altPerf_data, float epsilon=0.00001)
void updateTables(MRSortModel &model, std::string critId, Perf &b_old, Perf &b_new, std::unordered_map< std::string, std::unordered_map< std::string, float >> &ct, AlternativesPerformance &altPerf_model)
std::unordered_map< float, float > computeAboveDesirability(MRSortModel &model, std::string critId, Perf &b, Perf &b_above, Category &cat, Category &cat_above, std::unordered_map< std::string, float > &ct_prof, AlternativesPerformance &altPerf_model)
High level configuration of the app.
Definition: config.h:20