Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/10/17 11:23:05 (7 years ago)
Author:
pkimmesw
Message:

#2665 Added IsNoop to Expression, Made Expressions storable, Fixed Debugger, Fixed and improved problem data and result visualisation, Added custom ErcOption view, Added problem difficulty to problem data name

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Problem/BenchmarkSuite/PushBenchmarkSuiteEvaluator.cs

    r14909 r14952  
    3737
    3838    [StorableConstructor]
    39     public PushBenchmarkSuiteEvaluator(bool deserializing) { }
     39    public PushBenchmarkSuiteEvaluator(bool deserializing) : base(deserializing) { }
    4040
    4141    public PushBenchmarkSuiteEvaluator(PushBenchmarkSuiteEvaluator origin, Cloner cloner) : base(origin, cloner) {
     
    172172
    173173    private static double BooleanDiffer(bool a, bool b) {
    174       return a && b ? 0 : a || b ? 1 : 2;
     174      return a == b ? 0 : 1;
    175175    }
    176176
     
    200200    }
    201201
     202    private static readonly string[] separator = { "\n" };
    202203    private static double GetPrintDiffer(string estimated, IPushStack<string> printStack) {
    203       var printResult = string.Join(Environment.NewLine, printStack);
     204      var estimatedCount = estimated.Split(separator, StringSplitOptions.None).Length;
     205      var printResult = string.Join(separator[0], printStack.Take(estimatedCount));
    204206
    205207      return LevenshteinDistance(estimated, printResult);
Note: See TracChangeset for help on using the changeset viewer.