|
Project
|
Global heuristic to learn a model. More...
#include <HeuristicPipeline.h>
Public Member Functions | |
| HeuristicPipeline (Config &config, AlternativesPerformance &altPerfs) | |
| MRSortModel | start () |
| void | orderModels () |
| void | customSort () |
| void | computeAccuracy (MRSortModel &model) |
Public Attributes | |
| std::vector< MRSortModel > | models |
Global heuristic to learn a model.
The heuristic pipeline is responsible of initializing the sub algorithms: the WeightUpdater, the ProfileInitializer and the ProfileUpdater, is responsible for initilizing the population of n models and run the learning metaheuristic to converge into a learned model.
A complete description of the heuristic can be found in Learning Algorithms.
| HeuristicPipeline::HeuristicPipeline | ( | Config & | config, |
| AlternativesPerformance & | altPerfs | ||
| ) |
HeuristicPipeline Base constructor, stores the given config.
| config | app config to start and run the application. |
| void HeuristicPipeline::computeAccuracy | ( | MRSortModel & | model | ) |
computeAccuracy compute the accuracy of the model given the dataset and store it into the model
| model | model to work on |
| void HeuristicPipeline::customSort | ( | ) |
customSort sort the model given their accuracy
| void HeuristicPipeline::orderModels | ( | ) |
orderModels Order models by their accuracy.
| MRSortModel HeuristicPipeline::start | ( | ) |
Start run the heuristic pipeline and return the best model learned.