Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/21/13 16:33:47 (12 years ago)
Author:
sforsten
Message:

#1980:

  • added BestTrainingXCSSolutionAnalyzer and CurrentXCSSolutionAnalyzer
  • fixed bug: Equals method was not correct in CombinedIntegerVector
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/LearningClassifierSystems/HeuristicLab.Problems.ConditionActionClassification/3.3/Implementation/ConditionActionClassificationProblem.cs

    r9167 r9175  
    149149      get { return CoveringSolutionCreatorParameter; }
    150150    }
    151     private XCSSolutionAnalyzer XCSSolutionAnalyzer {
    152       get { return Operators.OfType<XCSSolutionAnalyzer>().FirstOrDefault(); }
    153     }
    154151    #endregion
    155152
     
    226223
    227224    private void InitializeOperators() {
    228       Operators.Add(new XCSSolutionAnalyzer());
     225      Operators.Add(new BestTrainingXCSSolutionAnalyzer());
     226      Operators.Add(new CurrentXCSSolutionAnalyzer());
    229227
    230228      ParameterizeAnalyzers();
     
    232230
    233231    private void ParameterizeAnalyzers() {
    234       if (XCSSolutionAnalyzer != null) {
    235         XCSSolutionAnalyzer.ClassifierParameter.ActualName = SolutionCreator.CombinedIntegerVectorParameter.ActualName;
    236         XCSSolutionAnalyzer.PredictionParameter.ActualName = Evaluator.PredictionParameter.ActualName;
    237         XCSSolutionAnalyzer.ErrorParameter.ActualName = Evaluator.ErrorParameter.ActualName;
    238         XCSSolutionAnalyzer.FitnessParameter.ActualName = Evaluator.FitnessParameter.ActualName;
    239         XCSSolutionAnalyzer.ExperienceParameter.ActualName = Evaluator.ExperienceParameter.ActualName;
    240         XCSSolutionAnalyzer.AverageActionSetSizeParameter.ActualName = Evaluator.AverageActionSetSizeParameter.ActualName;
    241         XCSSolutionAnalyzer.NumerosityParameter.ActualName = Evaluator.NumerosityParameter.ActualName;
    242         XCSSolutionAnalyzer.TimestampParameter.ActualName = Evaluator.TimestampParameter.ActualName;
    243         XCSSolutionAnalyzer.ProblemDataParameter.ActualName = ProblemDataParameter.Name;
    244         XCSSolutionAnalyzer.ResultsParameter.ActualName = "Results";
     232      foreach (XCSSolutionAnalyzer xcsAnalyzer in Operators.Where(x => x is XCSSolutionAnalyzer)) {
     233        xcsAnalyzer.ClassifierParameter.ActualName = SolutionCreator.CombinedIntegerVectorParameter.ActualName;
     234        xcsAnalyzer.PredictionParameter.ActualName = Evaluator.PredictionParameter.ActualName;
     235        xcsAnalyzer.ErrorParameter.ActualName = Evaluator.ErrorParameter.ActualName;
     236        xcsAnalyzer.FitnessParameter.ActualName = Evaluator.FitnessParameter.ActualName;
     237        xcsAnalyzer.ExperienceParameter.ActualName = Evaluator.ExperienceParameter.ActualName;
     238        xcsAnalyzer.AverageActionSetSizeParameter.ActualName = Evaluator.AverageActionSetSizeParameter.ActualName;
     239        xcsAnalyzer.NumerosityParameter.ActualName = Evaluator.NumerosityParameter.ActualName;
     240        xcsAnalyzer.TimestampParameter.ActualName = Evaluator.TimestampParameter.ActualName;
     241        xcsAnalyzer.ProblemDataParameter.ActualName = ProblemDataParameter.Name;
     242        xcsAnalyzer.ResultsParameter.ActualName = "Results";
    245243      }
    246244    }
Note: See TracChangeset for help on using the changeset viewer.