Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/15/11 13:34:38 (14 years ago)
Author:
mkommend
Message:

#1418: Finally added results from the grammar refactoring.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Tests/SymbolicDataAnalysisExpressionTreeInterpreterTest.cs

    r5574 r5686  
    2525using System.Linq;
    2626using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
    27 using HeuristicLab.Problems.DataAnalysis.Symbolic;
    2827using HeuristicLab.Random;
    2928using Microsoft.VisualStudio.TestTools.UnitTesting;
     
    5958      var twister = new MersenneTwister(31415);
    6059      var dataset = Util.CreateRandomDataset(twister, Rows, Columns);
    61       var grammar = new GlobalSymbolicExpressionGrammar(new FullFunctionalExpressionGrammar());
    62       grammar.MaxFunctionArguments = 0;
    63       grammar.MaxFunctionDefinitions = 0;
    64       grammar.MinFunctionArguments = 0;
    65       grammar.MinFunctionDefinitions = 0;
     60      var grammar = new FullFunctionalExpressionGrammar();
     61      grammar.MaximumFunctionArguments = 0;
     62      grammar.MaximumFunctionDefinitions = 0;
     63      grammar.MinimumFunctionArguments = 0;
     64      grammar.MinimumFunctionDefinitions = 0;
    6665      var randomTrees = Util.CreateRandomTrees(twister, dataset, grammar, N, 1, 100, 0, 0);
    6766      double[] estimation = new double[Rows];
     
    7877      var twister = new MersenneTwister(31415);
    7978      var dataset = Util.CreateRandomDataset(twister, Rows, Columns);
    80       var grammar = new GlobalSymbolicExpressionGrammar(new ArithmeticExpressionGrammar());
    81       grammar.MaxFunctionArguments = 0;
    82       grammar.MaxFunctionDefinitions = 0;
    83       grammar.MinFunctionArguments = 0;
    84       grammar.MinFunctionDefinitions = 0;
     79      var grammar = new ArithmeticExpressionGrammar();
     80      grammar.MaximumFunctionArguments = 0;
     81      grammar.MaximumFunctionDefinitions = 0;
     82      grammar.MinimumFunctionArguments = 0;
     83      grammar.MinimumFunctionDefinitions = 0;
    8584      var randomTrees = Util.CreateRandomTrees(twister, dataset, grammar, N, 1, 100, 0, 0);
    8685      double[] estimation = new double[Rows];
Note: See TracChangeset for help on using the changeset viewer.