Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/26/17 19:34:13 (7 years ago)
Author:
pkimmesw
Message:

#2665 Fixed analyzer, fixed Plush encoding + operators, adpated print evaluation according to McPhee

Location:
branches/PushGP/HeuristicLab.PushGP
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/PushGP/HeuristicLab.PushGP

    • Property svn:ignore set to
      *.user
  • branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Selector/LexicaseSelector.cs

    r15275 r15289  
    6060
    6161    protected override IScope[] Select(List<IScope> population) {
    62       var count = NumberOfSelectedSubScopesParameter.ActualValue.Value;
    63       var copy = CopySelectedParameter.Value.Value;
    64       var maximization = MaximizationParameter.ActualValue.Value;
    65       var random = RandomParameter.ActualValue;
     62      var selected = Apply(
     63        population,
     64        NumberOfSelectedSubScopesParameter.ActualValue.Value,
     65        CopySelectedParameter.Value.Value,
     66        MaximizationParameter.ActualValue.Value,
     67        RandomParameter.ActualValue,
     68        CaseQualitiesParameter.ActualValue);
     69
     70      return selected;
     71    }
     72
     73    public static IScope[] Apply(
     74      List<IScope> population,
     75      int count,
     76      bool copy,
     77      bool maximization,
     78      IRandom random,
     79      ItemArray<DoubleArray> caseQualities) {
    6680      var selected = new IScope[count];
    67       var caseQualities = CaseQualitiesParameter.ActualValue;
    6881      var repeats = (int)Math.Ceiling(count / (double)population.Count);
    6982      var caseCount = caseQualities[0].Length;
Note: See TracChangeset for help on using the changeset viewer.