Changeset 5686 for branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Tests/SymbolicDataAnalysisExpressionTreeInterpreterTest.cs
- Timestamp:
- 03/15/11 13:34:38 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Tests/SymbolicDataAnalysisExpressionTreeInterpreterTest.cs
r5574 r5686 25 25 using System.Linq; 26 26 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 27 using HeuristicLab.Problems.DataAnalysis.Symbolic;28 27 using HeuristicLab.Random; 29 28 using Microsoft.VisualStudio.TestTools.UnitTesting; … … 59 58 var twister = new MersenneTwister(31415); 60 59 var dataset = Util.CreateRandomDataset(twister, Rows, Columns); 61 var grammar = new GlobalSymbolicExpressionGrammar(new FullFunctionalExpressionGrammar());62 grammar.Max FunctionArguments = 0;63 grammar.Max FunctionDefinitions = 0;64 grammar.Min FunctionArguments = 0;65 grammar.Min FunctionDefinitions = 0;60 var grammar = new FullFunctionalExpressionGrammar(); 61 grammar.MaximumFunctionArguments = 0; 62 grammar.MaximumFunctionDefinitions = 0; 63 grammar.MinimumFunctionArguments = 0; 64 grammar.MinimumFunctionDefinitions = 0; 66 65 var randomTrees = Util.CreateRandomTrees(twister, dataset, grammar, N, 1, 100, 0, 0); 67 66 double[] estimation = new double[Rows]; … … 78 77 var twister = new MersenneTwister(31415); 79 78 var dataset = Util.CreateRandomDataset(twister, Rows, Columns); 80 var grammar = new GlobalSymbolicExpressionGrammar(new ArithmeticExpressionGrammar());81 grammar.Max FunctionArguments = 0;82 grammar.Max FunctionDefinitions = 0;83 grammar.Min FunctionArguments = 0;84 grammar.Min FunctionDefinitions = 0;79 var grammar = new ArithmeticExpressionGrammar(); 80 grammar.MaximumFunctionArguments = 0; 81 grammar.MaximumFunctionDefinitions = 0; 82 grammar.MinimumFunctionArguments = 0; 83 grammar.MinimumFunctionDefinitions = 0; 85 84 var randomTrees = Util.CreateRandomTrees(twister, dataset, grammar, N, 1, 100, 0, 0); 86 85 double[] estimation = new double[Rows];
Note: See TracChangeset
for help on using the changeset viewer.