Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/05/09 10:51:26 (16 years ago)
Author:
gkronber
Message:

Improved !StandardGP and !OffspringSelectionGP variants for classification and time-series. #224 (Simple frontend for GP for non-expert users (similar to HeurisicLab.SGA))

Location:
branches/CEDMA-Refactoring-Ticket419/HeuristicLab.GP.StructureIdentification
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/CEDMA-Refactoring-Ticket419/HeuristicLab.GP.StructureIdentification/AlgorithmBase.cs

    r1245 r1251  
    116116      algo.Name = "GP";
    117117      SequentialProcessor seq = new SequentialProcessor();
    118       EmptyOperator problemInjectorPlaceholder = new EmptyOperator();
     118      IOperator problemInjector = CreateProblemInjector();
    119119
    120120      RandomInjector randomInjector = new RandomInjector();
     
    143143      LeftReducer cleanUp = new LeftReducer();
    144144
    145       seq.AddSubOperator(problemInjectorPlaceholder);
     145      seq.AddSubOperator(problemInjector);
    146146      seq.AddSubOperator(randomInjector);
    147147      seq.AddSubOperator(globalInjector);
     
    162162      this.algorithm = seq;
    163163      return algo;
     164    }
     165
     166    protected internal virtual IOperator CreateProblemInjector() {
     167      return new EmptyOperator();
    164168    }
    165169
  • branches/CEDMA-Refactoring-Ticket419/HeuristicLab.GP.StructureIdentification/StandardGP.cs

    r1245 r1251  
    8787      Engine.OperatorGraph.AddOperator(algo);
    8888      Engine.OperatorGraph.InitialOperator = algo;
     89    }
     90
     91    protected internal override IOperator CreateProblemInjector() {
     92      return new StructIdProblemInjector();
    8993    }
    9094
Note: See TracChangeset for help on using the changeset viewer.