Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/28/17 09:03:34 (7 years ago)
Author:
pkimmesw
Message:

#2665 Testet Problems, Improved Performance

File:
1 edited

Legend:

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

    r15334 r15341  
    11namespace HeuristicLab.BenchmarkSuite.Problems {
     2  using System;
     3  using System.Linq;
     4
    25  public class VectorAverage : BenchmarkSuiteDataDescriptor {
    36    private const string name = "Vector Average - Medium";
     
    1821        Examples = CloneExamples(),
    1922        BestResult = 0,
    20         WorstResult = 1000000,
     23        WorstResult = 10000,
    2124        InputArgumentTypes = new[] { ExampleArgumentType.FloatVector },
    2225        OutputArgumentTypes = new[] { ExampleArgumentType.Float },
     
    2629        MaxSize = 400,
    2730        EvalLimit = 800,
     31        FloatStringFormat = "N4"
    2832      };
    2933    }
     
    3438        OutputArgs = output,
    3539        InputFloatVector = new[] { ExampleArgumentConverter.ConvertDoubles(input[0]) },
    36         OutputFloat = ExampleArgumentConverter.ConvertDoubles(output[0]),
     40        OutputFloat = ExampleArgumentConverter.ConvertDoubles(output[0]).Select(x => Math.Round(x, 4)).ToArray(),
    3741        OutputFloatPrecision = 4
    3842      };
Note: See TracChangeset for help on using the changeset viewer.