Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/25/13 12:37:18 (11 years ago)
Author:
sforsten
Message:

#1980:

  • fixed several bugs (crossover, subsumption, serialization etc.)
  • added ModuloOperator
  • CombinedIntegerVectorClassificationProblem\Data and VariableVectorClassificationProblem\Data inherit from ConditionActionClassificationProblem\Data
  • it can now be set how often the analyzers have to be executed
  • VariableVectorAction, VariableVectorCondition and VariableVectorInput now inherit from Item
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/LearningClassifierSystems/HeuristicLab.Algorithms.LearningClassifierSystems/3.3/LearningClassifierSystemMainLoop.cs

    r9226 r9242  
    6969      get { return (ValueLookupParameter<IOperator>)Parameters["FinalAnalyzer"]; }
    7070    }
     71    public ValueLookupParameter<IntValue> AnalyzeInIterationParameter {
     72      get { return (ValueLookupParameter<IntValue>)Parameters["AnalyzeInIteration"]; }
     73    }
    7174    #endregion
    7275
     
    114117      Parameters.Add(new ValueLookupParameter<IOperator>("Analyzer", "The operator used to analyze each generation."));
    115118      Parameters.Add(new ValueLookupParameter<IOperator>("FinalAnalyzer", "The operator used to analyze the last generation."));
     119      Parameters.Add(new ValueLookupParameter<IntValue>("AnalyzeInIteration", ""));
    116120      #endregion
    117121
     
    119123      VariableCreator variableCreator = new VariableCreator();
    120124      ResultsCollector resultsCollector = new ResultsCollector();
     125      ModuloOperator moduloOperator = new ModuloOperator();
     126      Comparator analyzerComparator = new Comparator();
     127      ConditionalBranch analyzerConditionalBranch = new ConditionalBranch();
    121128      Placeholder analyzer = new Placeholder();
    122129      Placeholder finalAnalyzer = new Placeholder();
     
    183190      resultsCollector.CollectedValues.Add(new LookupParameter<IntValue>("Iteration"));
    184191      resultsCollector.ResultsParameter.ActualName = "Results";
     192
     193      moduloOperator.LeftSideParameter.ActualName = "Iteration";
     194      moduloOperator.RightSideParameter.ActualName = AnalyzeInIterationParameter.ActualName;
     195      moduloOperator.ResultParameter.ActualName = "ModuloResult";
     196
     197      analyzerComparator.LeftSideParameter.ActualName = "ModuloResult";
     198      analyzerComparator.RightSideParameter.Value = new IntValue(0);
     199      analyzerComparator.ResultParameter.ActualName = "DoAnalyzing";
     200
     201      analyzerConditionalBranch.ConditionParameter.ActualName = "DoAnalyzing";
    185202
    186203      analyzer.Name = "Analyzer";
     
    403420      deletionSelectorAfterGA.Successor = leftReducerAfterGA;
    404421      leftReducerAfterGA.Successor = iterationCounter;
    405       iterationCounter.Successor = analyzer;
    406       analyzer.Successor = maxIterationsComparator;
     422      iterationCounter.Successor = moduloOperator;
     423      moduloOperator.Successor = analyzerComparator;
     424      analyzerComparator.Successor = analyzerConditionalBranch;
     425      analyzerConditionalBranch.Successor = maxIterationsComparator;
     426      analyzerConditionalBranch.TrueBranch = analyzer;
    407427      #endregion
    408428    }
Note: See TracChangeset for help on using the changeset viewer.