Changeset 2822


Ignore:
Timestamp:
02/17/10 19:24:44 (11 years ago)
Author:
gkronber
Message:

Fixed tests for network function library. #877 (Predefined GP engines for time series prognosis are defect because of the removal of local variables of function library injectors in #748)

Location:
trunk/sources/HeuristicLab.GP.Tests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.GP.Tests/NetworkFunctionLibraryTest.cs

    r2616 r2822  
    5757      MersenneTwister twister = new MersenneTwister();
    5858      Dataset ds = Util.CreateRandomDataset(twister, 1, 20);
    59       randomTrees = Util.CreateRandomTrees(twister, ds, FunctionLibraryInjector.Create(true, -3, 0), N, 1, 100);
     59      randomTrees = Util.CreateRandomTrees(twister, ds, FunctionLibraryInjector.Create(-3, 0), N, 1, 100);
    6060    }
    6161
  • trunk/sources/HeuristicLab.GP.Tests/NetworkToFunctionTransformerTest.cs

    r2674 r2822  
    330330      MersenneTwister twister = new MersenneTwister();
    331331      Dataset ds = Util.CreateRandomDataset(twister, 1, 20);
    332       IFunctionTree[] randomTrees = Util.CreateRandomTrees(twister, ds, FunctionLibraryInjector.Create(false, 0, 0), 1000, 1, 100);
     332      IFunctionTree[] randomTrees = Util.CreateRandomTrees(twister, ds, FunctionLibraryInjector.Create(0, 0), 1000, 1, 100);
    333333      foreach (var tree in randomTrees) {
    334334        IEnumerable<IFunctionTree> actualTrees = NetworkToFunctionTransformer_Accessor.Transform(tree, new List<string>() { "a", "b", "c" });
Note: See TracChangeset for help on using the changeset viewer.