Changeset 11203 for branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Problems.DataAnalysis.Symbolic-3.4
- Timestamp:
- 07/18/14 12:35:00 (10 years ago)
- Location:
- branches/HiveStatistics/sources
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HiveStatistics/sources
- Property svn:ignore
-
old new 8 8 FxCopResults.txt 9 9 Google.ProtocolBuffers-0.9.1.dll 10 Google.ProtocolBuffers-2.4.1.473.dll11 10 HeuristicLab 3.3.5.1.ReSharper.user 12 11 HeuristicLab 3.3.6.0.ReSharper.user 13 12 HeuristicLab.4.5.resharper.user 14 13 HeuristicLab.ExtLibs.6.0.ReSharper.user 15 HeuristicLab.Scripting.Development16 14 HeuristicLab.resharper.user 17 15 ProtoGen.exe … … 19 17 _ReSharper.HeuristicLab 20 18 _ReSharper.HeuristicLab 3.3 21 _ReSharper.HeuristicLab 3.3 Tests22 19 _ReSharper.HeuristicLab.ExtLibs 23 20 bin 24 21 protoc.exe 22 _ReSharper.HeuristicLab 3.3 Tests 23 Google.ProtocolBuffers-2.4.1.473.dll
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/HiveStatistics/sources/HeuristicLab.Tests
- Property svn:mergeinfo changed
-
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Problems.DataAnalysis.Symbolic-3.4/SymbolicDataAnalysisExpressionCrossoverTest.cs
r11202 r11203 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2011 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 27 27 using HeuristicLab.Core; 28 28 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 29 using HeuristicLab.Problems.DataAnalysis.Symbolic; 29 30 using HeuristicLab.Problems.DataAnalysis.Symbolic.Regression; 30 31 using HeuristicLab.Random; … … 32 33 using ExecutionContext = HeuristicLab.Core.ExecutionContext; 33 34 34 namespace HeuristicLab.Problems.DataAnalysis.Symbolic .Tests {35 namespace HeuristicLab.Problems.DataAnalysis.Symbolic_34.Tests { 35 36 [TestClass()] 36 37 public class SymbolicDataAnalysisExpressionCrossoverTest { … … 48 49 49 50 [TestMethod] 50 [TestCategory("Problems.DataAnalysis")]51 [TestProperty("Time", "long")]52 51 public void SymbolicDataAnalysisExpressionSemanticSimilarityCrossoverPerformanceTest() { 53 52 var problem = new SymbolicRegressionSingleObjectiveProblem(); … … 57 56 58 57 [TestMethod] 59 [TestCategory("Problems.DataAnalysis")]60 [TestProperty("Time", "long")]61 58 public void SymbolicDataAnalysisExpressionProbabilisticFunctionalCrossoverPerformanceTest() { 62 59 var problem = new SymbolicRegressionSingleObjectiveProblem(); … … 66 63 67 64 [TestMethod] 68 [TestCategory("Problems.DataAnalysis")]69 [TestProperty("Time", "long")]70 65 public void SymbolicDataAnalysisExpressionDeterministicBestCrossoverPerformanceTest() { 71 66 var problem = new SymbolicRegressionSingleObjectiveProblem(); … … 75 70 76 71 [TestMethod] 77 [TestCategory("Problems.DataAnalysis")]78 [TestProperty("Time", "long")]79 72 public void SymbolicDataAnalysisExpressionContextAwareCrossoverPerformanceTest() { 80 73 var problem = new SymbolicRegressionSingleObjectiveProblem(); … … 84 77 85 78 [TestMethod] 86 [TestCategory("Problems.DataAnalysis")]87 [TestProperty("Time", "long")]88 79 public void SymbolicDataAnalysisExpressionDepthConstrainedCrossoverPerformanceTest() { 89 80 var problem = new SymbolicRegressionSingleObjectiveProblem(); … … 146 137 147 138 foreach (var tree in trees) 148 HeuristicLab.Encodings.SymbolicExpressionTreeEncoding .Tests.Util.IsValid(tree);139 HeuristicLab.Encodings.SymbolicExpressionTreeEncoding_34.Tests.Util.IsValid(tree); 149 140 } 150 141 } -
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Problems.DataAnalysis.Symbolic-3.4/SymbolicDataAnalysisExpressionTreeInterpreterTest.cs
r11202 r11203 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 25 25 using System.Linq; 26 26 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 27 using HeuristicLab.Problems.DataAnalysis.Symbolic; 27 28 using HeuristicLab.Random; 28 29 using Microsoft.VisualStudio.TestTools.UnitTesting; 29 namespace HeuristicLab.Problems.DataAnalysis.Symbolic .Tests {30 31 32 [TestClass ]30 namespace HeuristicLab.Problems.DataAnalysis.Symbolic_34.Tests { 31 32 33 [TestClass()] 33 34 public class SymbolicDataAnalysisExpressionTreeInterpreterTest { 34 35 private const int N = 1000; 35 36 private const int Rows = 1000; 36 37 private const int Columns = 50; 37 38 private static Dataset ds = new Dataset(new string[] { "Y", "A", "B" }, new double[,] { 38 private TestContext testContextInstance; 39 40 /// <summary> 41 ///Gets or sets the test context which provides 42 ///information about and functionality for the current test run. 43 ///</summary> 44 public TestContext TestContext { 45 get { 46 return testContextInstance; 47 } 48 set { 49 testContextInstance = value; 50 } 51 } 52 53 [TestMethod] 54 public void SymbolicDataAnalysisExpressionTreeInterpreterTypeCoherentGrammarPerformanceTest() { 55 TypeCoherentGrammarPerformanceTest(new SymbolicDataAnalysisExpressionTreeInterpreter(), 12.5e6); 56 } 57 [TestMethod] 58 public void SymbolicDataAnalysisExpressionTreeInterpreterFullGrammarPerformanceTest() { 59 FullGrammarPerformanceTest(new SymbolicDataAnalysisExpressionTreeInterpreter(), 12.5e6); 60 } 61 [TestMethod] 62 public void SymbolicDataAnalysisExpressionTreeInterpreterArithmeticGrammarPerformanceTest() { 63 ArithmeticGrammarPerformanceTest(new SymbolicDataAnalysisExpressionTreeInterpreter(), 12.5e6); 64 } 65 66 [TestMethod] 67 public void SymbolicDataAnalysisExpressionTreeILEmittingInterpreterTypeCoherentGrammarPerformanceTest() { 68 TypeCoherentGrammarPerformanceTest(new SymbolicDataAnalysisExpressionTreeILEmittingInterpreter(), 7.5e6); 69 } 70 [TestMethod] 71 public void SymbolicDataAnalysisExpressionTreeILEmittingInterpreterFullGrammarPerformanceTest() { 72 FullGrammarPerformanceTest(new SymbolicDataAnalysisExpressionTreeILEmittingInterpreter(), 7.5e6); 73 } 74 [TestMethod] 75 public void SymbolicDataAnalysisExpressionTreeILEmittingInterpreterArithmeticGrammarPerformanceTest() { 76 ArithmeticGrammarPerformanceTest(new SymbolicDataAnalysisExpressionTreeILEmittingInterpreter(), 7.5e6); 77 } 78 79 private void TypeCoherentGrammarPerformanceTest(ISymbolicDataAnalysisExpressionTreeInterpreter interpreter, double nodesPerSecThreshold) { 80 var twister = new MersenneTwister(31415); 81 var dataset = Util.CreateRandomDataset(twister, Rows, Columns); 82 var grammar = new TypeCoherentExpressionGrammar(); 83 grammar.ConfigureAsDefaultRegressionGrammar(); 84 grammar.MaximumFunctionArguments = 0; 85 grammar.MaximumFunctionDefinitions = 0; 86 grammar.MinimumFunctionArguments = 0; 87 grammar.MinimumFunctionDefinitions = 0; 88 var randomTrees = Util.CreateRandomTrees(twister, dataset, grammar, N, 1, 100, 0, 0); 89 foreach (ISymbolicExpressionTree tree in randomTrees) { 90 Util.InitTree(tree, twister, new List<string>(dataset.VariableNames)); 91 } 92 double nodesPerSec = Util.CalculateEvaluatedNodesPerSec(randomTrees, interpreter, dataset, 3); 93 //mkommend: commented due to performance issues on the builder 94 // Assert.IsTrue(nodesPerSec > nodesPerSecThreshold); // evaluated nodes per seconds must be larger than 15mNodes/sec 95 } 96 97 private void FullGrammarPerformanceTest(ISymbolicDataAnalysisExpressionTreeInterpreter interpreter, double nodesPerSecThreshold) { 98 var twister = new MersenneTwister(31415); 99 var dataset = Util.CreateRandomDataset(twister, Rows, Columns); 100 var grammar = new FullFunctionalExpressionGrammar(); 101 grammar.MaximumFunctionArguments = 0; 102 grammar.MaximumFunctionDefinitions = 0; 103 grammar.MinimumFunctionArguments = 0; 104 grammar.MinimumFunctionDefinitions = 0; 105 var randomTrees = Util.CreateRandomTrees(twister, dataset, grammar, N, 1, 100, 0, 0); 106 foreach (ISymbolicExpressionTree tree in randomTrees) { 107 Util.InitTree(tree, twister, new List<string>(dataset.VariableNames)); 108 } 109 double nodesPerSec = Util.CalculateEvaluatedNodesPerSec(randomTrees, interpreter, dataset, 3); 110 //mkommend: commented due to performance issues on the builder 111 //Assert.IsTrue(nodesPerSec > nodesPerSecThreshold); // evaluated nodes per seconds must be larger than 15mNodes/sec 112 } 113 114 private void ArithmeticGrammarPerformanceTest(ISymbolicDataAnalysisExpressionTreeInterpreter interpreter, double nodesPerSecThreshold) { 115 var twister = new MersenneTwister(31415); 116 var dataset = Util.CreateRandomDataset(twister, Rows, Columns); 117 var grammar = new ArithmeticExpressionGrammar(); 118 grammar.MaximumFunctionArguments = 0; 119 grammar.MaximumFunctionDefinitions = 0; 120 grammar.MinimumFunctionArguments = 0; 121 grammar.MinimumFunctionDefinitions = 0; 122 var randomTrees = Util.CreateRandomTrees(twister, dataset, grammar, N, 1, 100, 0, 0); 123 foreach (SymbolicExpressionTree tree in randomTrees) { 124 Util.InitTree(tree, twister, new List<string>(dataset.VariableNames)); 125 } 126 127 double nodesPerSec = Util.CalculateEvaluatedNodesPerSec(randomTrees, interpreter, dataset, 3); 128 //mkommend: commented due to performance issues on the builder 129 //Assert.IsTrue(nodesPerSec > nodesPerSecThreshold); // evaluated nodes per seconds must be larger than 15mNodes/sec 130 } 131 132 133 /// <summary> 134 ///A test for Evaluate 135 ///</summary> 136 [TestMethod] 137 public void SymbolicDataAnalysisExpressionTreeInterpreterEvaluateTest() { 138 Dataset ds = new Dataset(new string[] { "Y", "A", "B" }, new double[,] { 39 139 { 1.0, 1.0, 1.0 }, 40 140 { 2.0, 2.0, 2.0 }, … … 51 151 }); 52 152 53 [TestMethod]54 [TestCategory("Problems.DataAnalysis.Symbolic")]55 [TestProperty("Time", "long")]56 public void StandardInterpreterTestTypeCoherentGrammarPerformance() {57 TestTypeCoherentGrammarPerformance(new SymbolicDataAnalysisExpressionTreeInterpreter(), 12.5e6);58 }59 [TestMethod]60 [TestCategory("Problems.DataAnalysis.Symbolic")]61 [TestProperty("Time", "long")]62 public void StandardInterpreterTestFullGrammarPerformance() {63 TestFullGrammarPerformance(new SymbolicDataAnalysisExpressionTreeInterpreter(), 12.5e6);64 }65 [TestMethod]66 [TestCategory("Problems.DataAnalysis.Symbolic")]67 [TestProperty("Time", "long")]68 public void StandardInterpreterTestArithmeticGrammarPerformance() {69 TestArithmeticGrammarPerformance(new SymbolicDataAnalysisExpressionTreeInterpreter(), 12.5e6);70 }71 72 73 [TestMethod]74 [TestCategory("Problems.DataAnalysis.Symbolic")]75 [TestProperty("Time", "long")]76 public void ILEmittingInterpreterTestTypeCoherentGrammarPerformance() {77 TestTypeCoherentGrammarPerformance(new SymbolicDataAnalysisExpressionTreeILEmittingInterpreter(), 7.5e6);78 }79 [TestMethod]80 [TestCategory("Problems.DataAnalysis.Symbolic")]81 [TestProperty("Time", "long")]82 public void ILEmittingInterpreterTestFullGrammarPerformance() {83 TestFullGrammarPerformance(new SymbolicDataAnalysisExpressionTreeILEmittingInterpreter(), 7.5e6);84 }85 [TestMethod]86 [TestCategory("Problems.DataAnalysis.Symbolic")]87 [TestProperty("Time", "long")]88 public void ILEmittingInterpreterTestArithmeticGrammarPerformance() {89 TestArithmeticGrammarPerformance(new SymbolicDataAnalysisExpressionTreeILEmittingInterpreter(), 7.5e6);90 }91 92 93 [TestMethod]94 [TestCategory("Problems.DataAnalysis.Symbolic")]95 [TestProperty("Time", "long")]96 public void LinearInterpreterTestTypeCoherentGrammarPerformance() {97 TestTypeCoherentGrammarPerformance(new SymbolicDataAnalysisExpressionTreeLinearInterpreter(), 12.5e6);98 }99 [TestMethod]100 [TestCategory("Problems.DataAnalysis.Symbolic")]101 [TestProperty("Time", "long")]102 public void LinearInterpreterTestFullGrammarPerformance() {103 TestFullGrammarPerformance(new SymbolicDataAnalysisExpressionTreeLinearInterpreter(), 12.5e6);104 }105 [TestMethod]106 [TestCategory("Problems.DataAnalysis.Symbolic")]107 [TestProperty("Time", "long")]108 public void LinearInterpreterTestArithmeticGrammarPerformance() {109 TestArithmeticGrammarPerformance(new SymbolicDataAnalysisExpressionTreeLinearInterpreter(), 12.5e6);110 }111 112 private void TestTypeCoherentGrammarPerformance(ISymbolicDataAnalysisExpressionTreeInterpreter interpreter, double nodesPerSecThreshold) {113 var twister = new MersenneTwister(31415);114 var dataset = Util.CreateRandomDataset(twister, Rows, Columns);115 var grammar = new TypeCoherentExpressionGrammar();116 grammar.ConfigureAsDefaultRegressionGrammar();117 grammar.MaximumFunctionArguments = 0;118 grammar.MaximumFunctionDefinitions = 0;119 grammar.MinimumFunctionArguments = 0;120 grammar.MinimumFunctionDefinitions = 0;121 var randomTrees = Util.CreateRandomTrees(twister, dataset, grammar, N, 1, 100, 0, 0);122 foreach (ISymbolicExpressionTree tree in randomTrees) {123 Util.InitTree(tree, twister, new List<string>(dataset.VariableNames));124 }125 double nodesPerSec = Util.CalculateEvaluatedNodesPerSec(randomTrees, interpreter, dataset, 3);126 //mkommend: commented due to performance issues on the builder127 // Assert.IsTrue(nodesPerSec > nodesPerSecThreshold); // evaluated nodes per seconds must be larger than 15mNodes/sec128 }129 130 private void TestFullGrammarPerformance(ISymbolicDataAnalysisExpressionTreeInterpreter interpreter, double nodesPerSecThreshold) {131 var twister = new MersenneTwister(31415);132 var dataset = Util.CreateRandomDataset(twister, Rows, Columns);133 var grammar = new FullFunctionalExpressionGrammar();134 grammar.MaximumFunctionArguments = 0;135 grammar.MaximumFunctionDefinitions = 0;136 grammar.MinimumFunctionArguments = 0;137 grammar.MinimumFunctionDefinitions = 0;138 var randomTrees = Util.CreateRandomTrees(twister, dataset, grammar, N, 1, 100, 0, 0);139 foreach (ISymbolicExpressionTree tree in randomTrees) {140 Util.InitTree(tree, twister, new List<string>(dataset.VariableNames));141 }142 double nodesPerSec = Util.CalculateEvaluatedNodesPerSec(randomTrees, interpreter, dataset, 3);143 //mkommend: commented due to performance issues on the builder144 //Assert.IsTrue(nodesPerSec > nodesPerSecThreshold); // evaluated nodes per seconds must be larger than 15mNodes/sec145 }146 147 private void TestArithmeticGrammarPerformance(ISymbolicDataAnalysisExpressionTreeInterpreter interpreter, double nodesPerSecThreshold) {148 var twister = new MersenneTwister(31415);149 var dataset = Util.CreateRandomDataset(twister, Rows, Columns);150 var grammar = new ArithmeticExpressionGrammar();151 //grammar.Symbols.OfType<Variable>().First().Enabled = false;152 grammar.MaximumFunctionArguments = 0;153 grammar.MaximumFunctionDefinitions = 0;154 grammar.MinimumFunctionArguments = 0;155 grammar.MinimumFunctionDefinitions = 0;156 var randomTrees = Util.CreateRandomTrees(twister, dataset, grammar, N, 1, 100, 0, 0);157 foreach (SymbolicExpressionTree tree in randomTrees) {158 Util.InitTree(tree, twister, new List<string>(dataset.VariableNames));159 }160 161 double nodesPerSec = Util.CalculateEvaluatedNodesPerSec(randomTrees, interpreter, dataset, 3);162 //mkommend: commented due to performance issues on the builder163 //Assert.IsTrue(nodesPerSec > nodesPerSecThreshold); // evaluated nodes per seconds must be larger than 15mNodes/sec164 }165 166 167 /// <summary>168 ///A test for Evaluate169 ///</summary>170 [TestMethod]171 [TestCategory("Problems.DataAnalysis.Symbolic")]172 [TestProperty("Time", "short")]173 public void StandardInterpreterTestEvaluation() {174 153 var interpreter = new SymbolicDataAnalysisExpressionTreeInterpreter(); 175 154 EvaluateTerminals(interpreter, ds); … … 179 158 180 159 [TestMethod] 181 [TestCategory("Problems.DataAnalysis.Symbolic")] 182 [TestProperty("Time", "short")] 183 public void ILEmittingInterpreterTestEvaluation() { 160 public void SymbolicDataAnalysisExpressionILEmittingTreeInterpreterEvaluateTest() { 161 Dataset ds = new Dataset(new string[] { "Y", "A", "B" }, new double[,] { 162 { 1.0, 1.0, 1.0 }, 163 { 2.0, 2.0, 2.0 }, 164 { 3.0, 1.0, 2.0 }, 165 { 4.0, 1.0, 1.0 }, 166 { 5.0, 2.0, 2.0 }, 167 { 6.0, 1.0, 2.0 }, 168 { 7.0, 1.0, 1.0 }, 169 { 8.0, 2.0, 2.0 }, 170 { 9.0, 1.0, 2.0 }, 171 { 10.0, 1.0, 1.0 }, 172 { 11.0, 2.0, 2.0 }, 173 { 12.0, 1.0, 2.0 } 174 }); 175 184 176 var interpreter = new SymbolicDataAnalysisExpressionTreeILEmittingInterpreter(); 185 EvaluateTerminals(interpreter, ds);186 EvaluateOperations(interpreter, ds);187 }188 189 [TestMethod]190 [TestCategory("Problems.DataAnalysis.Symbolic")]191 [TestProperty("Time", "short")]192 public void LinearInterpreterTestEvaluation() {193 var interpreter = new SymbolicDataAnalysisExpressionTreeLinearInterpreter();194 195 //ADFs are not supported by the linear interpreter196 177 EvaluateTerminals(interpreter, ds); 197 178 EvaluateOperations(interpreter, ds); … … 317 298 Evaluate(interpreter, ds, "(and (log -1.0) 1.0)", 0, -1.0); // (and NaN 1.0) 318 299 300 319 301 // OR 320 302 Evaluate(interpreter, ds, "(or -1.0 -2.0)", 0, -1.0); … … 327 309 Evaluate(interpreter, ds, "(or (log -1.0))", 0, -1.0); // (or NaN) 328 310 Evaluate(interpreter, ds, "(or (log -1.0) 1.0)", 0, -1.0); // (or NaN 1.0) 329 330 // XOR331 Evaluate(interpreter, ds, "(xor -1.0 -2.0)", 0, -1.0);332 Evaluate(interpreter, ds, "(xor -1.0 2.0)", 0, 1.0);333 Evaluate(interpreter, ds, "(xor 1.0 -2.0)", 0, 1.0);334 Evaluate(interpreter, ds, "(xor 1.0 2.0)", 0, -1.0);335 Evaluate(interpreter, ds, "(xor 0.0 0.0)", 0, -1.0);336 Evaluate(interpreter, ds, "(xor -1.0 -2.0 -3.0)", 0, -1.0);337 Evaluate(interpreter, ds, "(xor -1.0 -2.0 3.0)", 0, 1.0);338 Evaluate(interpreter, ds, "(xor -1.0 2.0 3.0)", 0, -1.0);339 Evaluate(interpreter, ds, "(xor 1.0 2.0 3.0)", 0, 1.0);340 Evaluate(interpreter, ds, "(xor (log -1.0))", 0, -1.0);341 Evaluate(interpreter, ds, "(xor (log -1.0) 1.0)", 0, 1.0);342 311 343 312 // sin, cos, tan -
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Problems.DataAnalysis.Symbolic-3.4/SymbolicDataAnalysisExpressionTreeSimplifierTest.cs
r11202 r11203 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 23 23 using System.Collections.Generic; 24 24 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 25 using HeuristicLab.Problems.DataAnalysis.Symbolic; 25 26 using Microsoft.VisualStudio.TestTools.UnitTesting; 26 27 27 namespace HeuristicLab.Problems.DataAnalysis.Symbolic .Tests {28 namespace HeuristicLab.Problems.DataAnalysis.Symbolic_34.Tests { 28 29 29 30 [TestClass()] 30 31 public class SymbolicDataAnalysisExpressionTreeSimplifierTest { 31 32 32 [TestMethod] 33 [TestCategory("Problems.DataAnalysis")]34 [TestProperty("Time", "short")]35 33 public void SimplifierAxiomsTest() { 36 34 SymbolicExpressionImporter importer = new SymbolicExpressionImporter(); -
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Problems.DataAnalysis.Symbolic-3.4/SymbolicExpressionImporter.cs
r11202 r11203 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 25 25 using System.Linq; 26 26 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 27 28 namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Tests { 27 using HeuristicLab.Problems.DataAnalysis.Symbolic; 28 29 namespace HeuristicLab.Problems.DataAnalysis.Symbolic_34.Tests { 29 30 internal class SymbolicExpressionImporter { 30 31 private const string VARSTART = "VAR"; … … 70 71 {"OR", new Or()}, 71 72 {"NOT", new Not()}, 72 {"XOR", new Xor()},73 73 {"DIFF", new Derivative()}, 74 74 {"PROG", new ProgramRootSymbol()}, … … 85 85 ProgramRootSymbol programRootSymbol = new ProgramRootSymbol(); 86 86 StartSymbol startSymbol = new StartSymbol(); 87 88 public SymbolicExpressionImporter() { 89 } 87 90 88 91 internal ISymbolicExpressionTree Import(string str) { -
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Problems.DataAnalysis.Symbolic-3.4/Token.cs
r11202 r11203 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 22 22 using System.Globalization; 23 23 24 namespace HeuristicLab.Problems.DataAnalysis.Symbolic .Tests {24 namespace HeuristicLab.Problems.DataAnalysis.Symbolic_34.Tests { 25 25 internal enum TokenSymbol { LPAR, RPAR, SYMB, NUMBER }; 26 26 internal class Token { -
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Problems.DataAnalysis.Symbolic-3.4/Util.cs
r11202 r11203 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 25 25 using System.Linq; 26 26 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 27 using HeuristicLab.Problems.DataAnalysis.Symbolic; 27 28 using HeuristicLab.Random; 28 namespace HeuristicLab.Problems.DataAnalysis.Symbolic .Tests {29 namespace HeuristicLab.Problems.DataAnalysis.Symbolic_34.Tests { 29 30 internal class Util { 30 31
Note: See TracChangeset
for help on using the changeset viewer.