Changeset 15289 for branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Selector/LexicaseSelector.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/Selector/LexicaseSelector.cs
r15275 r15289 60 60 61 61 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) { 66 80 var selected = new IScope[count]; 67 var caseQualities = CaseQualitiesParameter.ActualValue;68 81 var repeats = (int)Math.Ceiling(count / (double)population.Count); 69 82 var caseCount = caseQualities[0].Length;
Note: See TracChangeset
for help on using the changeset viewer.