Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/04/13 16:16:38 (12 years ago)
Author:
sforsten
Message:

#1980:

  • deleted not needed interface IMatching
  • finished VariableVector encoding
  • the algorithm LearningClassifierSystem is now independent of a specific encoding. It still needs the ConditionActionEncoding.
  • merged r9191:9203 HeuristicLab.Core from trunk to branch
File:
1 edited

Legend:

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

    r9194 r9204  
    2020#endregion
    2121
     22using System.Collections.Generic;
    2223using System.Linq;
    2324using HeuristicLab.Common;
     
    2930using HeuristicLab.Parameters;
    3031using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     32using HeuristicLab.PluginInfrastructure;
    3133using HeuristicLab.Problems.DataAnalysis;
    3234using HeuristicLab.Problems.Instances;
     
    233235
    234236    private void InitializeOperators() {
     237      Operators.AddRange(ApplicationManager.Manager.GetInstances<ICombinedIntegerVectorCrossover>());
     238      Operators.AddRange(AddManipulators());
    235239      Operators.Add(new BestTrainingXCSSolutionAnalyzer());
    236240      Operators.Add(new CurrentXCSSolutionAnalyzer());
    237241
    238       ParameterizeAnalyzers();
    239     }
    240 
    241     private void ParameterizeAnalyzers() {
    242       foreach (XCSSolutionAnalyzer xcsAnalyzer in Operators.Where(x => x is XCSSolutionAnalyzer)) {
     242      ParameterizeOperators();
     243    }
     244
     245    private IEnumerable<ICombinedIntegerVectorManipulator> AddManipulators() {
     246      var manipulator = new UniformSomePositionManipulator();
     247      manipulator.ChildParameter.ActualName = "CombinedIntegerVector";
     248      manipulator.FetchedInputParameter.ActualName = ClassifierFetcher.CurrentInputToMatchParameter.ActualName;
     249      manipulator.PossibleActionsParameter.ActualName = PossibleActionsConcreteClassParameter.Name;
     250      return new List<ICombinedIntegerVectorManipulator>() { manipulator };
     251    }
     252
     253    private void ParameterizeOperators() {
     254      foreach (XCSSolutionAnalyzer xcsAnalyzer in Operators.OfType<XCSSolutionAnalyzer>()) {
    243255        xcsAnalyzer.ClassifierParameter.ActualName = SolutionCreator.CombinedIntegerVectorParameter.ActualName;
    244256        xcsAnalyzer.PredictionParameter.ActualName = Evaluator.PredictionParameter.ActualName;
Note: See TracChangeset for help on using the changeset viewer.