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/Problem/PlushPushProblem.cs

    r15275 r15289  
    99  using HeuristicLab.Problems.ProgramSynthesis.Push.Analyzer;
    1010  using HeuristicLab.Problems.ProgramSynthesis.Push.Encoding;
     11  using HeuristicLab.Problems.ProgramSynthesis.Push.Evaluator;
    1112  using HeuristicLab.Problems.ProgramSynthesis.Push.Expressions;
    1213
     
    4344    }
    4445
    45     protected override PushProgram MapIndividual(Individual individual, IRandom random) {
     46    protected override PushProgram MapIndividual(Individual individual) {
    4647      var plushVector = individual.PlushVector();
    4748      var program = plushVector.PushProgram;
     
    4950      return program;
    5051    }
    51 
    52     public override double Evaluate(Individual individual, IRandom random) {
    53       var program = MapIndividual(individual, random);
    54       var result = PushEvaluator.EvaluateTraining(Pool, program, random);
    55 
    56       individual[CaseQualitiesScopeParameterName] = new DoubleArray(result.ExampleQualities);
    57 
    58       return result.AvgQuality;
    59     }
    6052  }
    6153}
Note: See TracChangeset for help on using the changeset viewer.