Function heuristic_2(DataSetFid&, Parameters&, const std::vector<std::vector<double>>&)
- Defined in File fidexGloRulesFct.h 
Function Documentation
- 
std::vector<Rule> heuristic_2(DataSetFid &trainDataset, Parameters &p, const std::vector<std::vector<double>> &hyperlocus)
- Generates a list of rules covering all training samples using a faster but less optimal heuristic. - Generates rules for each training sample and filters the list of generated rules to remove duplicates and keep the rules that fit and cover all training samples. This is a faster version of the first heuristic ‘heuristic_1’, the only difference is that it doesn’t check every generated rule before choosing the best one. After removing duplicates, it directly selects a rule if one or more not already covered samples are covered by the rule, until all samples are covered. - Parameters:
- trainDataset – Class containing all usable data to compute the algorithm. 
- p – Class containing all user-defined parameters that influences the program execution. 
- hyperlocus – 2D vector of doubles representing all the possible hyperplanes used to compute the Fidex algorithm. 
 
- Returns:
- A vector containing the computed rules.