Changeset 15289 for branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Problem/PlushPushProblem.cs
- Timestamp:
- 07/26/17 19:34:13 (7 years ago)
- Location:
- branches/PushGP/HeuristicLab.PushGP
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PushGP/HeuristicLab.PushGP
-
Property
svn:ignore
set to
*.user
-
Property
svn:ignore
set to
-
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Problem/PlushPushProblem.cs
r15275 r15289 9 9 using HeuristicLab.Problems.ProgramSynthesis.Push.Analyzer; 10 10 using HeuristicLab.Problems.ProgramSynthesis.Push.Encoding; 11 using HeuristicLab.Problems.ProgramSynthesis.Push.Evaluator; 11 12 using HeuristicLab.Problems.ProgramSynthesis.Push.Expressions; 12 13 … … 43 44 } 44 45 45 protected override PushProgram MapIndividual(Individual individual , IRandom random) {46 protected override PushProgram MapIndividual(Individual individual) { 46 47 var plushVector = individual.PlushVector(); 47 48 var program = plushVector.PushProgram; … … 49 50 return program; 50 51 } 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 }60 52 } 61 53 }
Note: See TracChangeset
for help on using the changeset viewer.