Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/13/10 15:43:55 (15 years ago)
Author:
gkronber
Message:

Rewrote part of network transformation code. #833 (Genetic Programming based search for equations (modeling with multiple target variables))

File:
1 edited

Legend:

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

    r2622 r2624  
    8585      IFunctionTree expected = log.GetTreeNode(); expected.AddSubTree(param.GetTreeNode());
    8686      IFunctionTree actual;
    87       actual = NetworkToFunctionTransformer_Accessor.InvertFunction(tree);
     87      actual = NetworkToFunctionTransformer_Accessor.InvertChain(tree);
    8888      var e = (from x in FunctionTreeIterator.IteratePostfix(expected)
    8989               select x.Function.GetType()).GetEnumerator();
     
    121121        IEnumerable<IFunctionTree> actualTrees = NetworkToFunctionTransformer_Accessor.Transform(tree, new List<string>() { "a", "b", "c" });
    122122
    123         IFunctionTree t0 = importer.Import("(- (+ 1.0 (variable 1.0 b 0)) (* 1.0 (variable 1.0 c 0)))");
    124         IFunctionTree t1 = importer.Import("(- (+ (variable 1.0 a 0) (* 1.0 (variable 1.0 c 0) 1.0)))");
    125         IFunctionTree t2 = importer.Import("(/ (+ (variable 1.0 a 0) (+ 1.0 (variable 1.0 b 0) 1.0)))");
     123        IFunctionTree t0 = importer.Import("(- (+ (variable 1.0 b 0) 1.0) (* (variable 1.0 c 0) 1.0 ))");
     124        IFunctionTree t1 = importer.Import("(- (+ (variable 1.0 a 0) (* (variable 1.0 c 0) 1.0)) 1.0 )");
     125        IFunctionTree t2 = importer.Import("(/ (+ (variable 1.0 a 0) (+ (variable 1.0 b 0) 1.0)) 1.0 )");
    126126
    127127        CompareTrees(actualTrees, new List<IFunctionTree>() {
Note: See TracChangeset for help on using the changeset viewer.