- Timestamp:
- 05/09/13 18:57:22 (11 years ago)
- Location:
- branches/LearningClassifierSystems/HeuristicLab.Encodings.DecisionList/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/LearningClassifierSystems/HeuristicLab.Encodings.DecisionList/3.3/DecisionListSolution.cs
r9411 r9475 137 137 double theoryLength; 138 138 var estimatedTraining = Model.Evaluate(originalTrainingCondition, out aliveRules, out theoryLength); 139 TrainingNumberOfAliveRules = aliveRules.Count ;139 TrainingNumberOfAliveRules = aliveRules.Count + (Model.DefaultAction != null ? 1 : 0); 140 140 TrainingAliveRules = aliveRules; 141 141 TrainingTheoryLength = theoryLength; -
branches/LearningClassifierSystems/HeuristicLab.Encodings.DecisionList/3.3/Evaluator/MDLEvaluator.cs
r9392 r9475 145 145 146 146 // default rule cannot be deleted, but it has to be considered in the rule set size 147 private void DoRuleDeletion(DecisionList dl, I temSet<Rule> aliveRules, int minRules) {147 private void DoRuleDeletion(DecisionList dl, IEnumerable<Rule> aliveRules, int minRules) { 148 148 int ruleSetSize = dl.RuleSetSize; 149 149 if (ruleSetSize <= minRules) { return; }
Note: See TracChangeset
for help on using the changeset viewer.