- Timestamp:
- 07/26/13 14:11:33 (11 years ago)
- Location:
- trunk/sources/HeuristicLab.Tests/HeuristicLab.Problems.DataAnalysis.Symbolic-3.4
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Tests/HeuristicLab.Problems.DataAnalysis.Symbolic-3.4/SymbolicDataAnalysisExpressionCrossoverTest.cs
r9764 r9785 27 27 using HeuristicLab.Core; 28 28 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 29 using HeuristicLab.Problems.DataAnalysis.Symbolic;30 29 using HeuristicLab.Problems.DataAnalysis.Symbolic.Regression; 31 30 using HeuristicLab.Random; … … 49 48 50 49 [TestMethod] 50 [TestCategory("Problems.DataAnalysis")] 51 [TestProperty("Time", "long")] 51 52 public void SymbolicDataAnalysisExpressionSemanticSimilarityCrossoverPerformanceTest() { 52 53 var problem = new SymbolicRegressionSingleObjectiveProblem(); … … 56 57 57 58 [TestMethod] 59 [TestCategory("Problems.DataAnalysis")] 60 [TestProperty("Time", "long")] 58 61 public void SymbolicDataAnalysisExpressionProbabilisticFunctionalCrossoverPerformanceTest() { 59 62 var problem = new SymbolicRegressionSingleObjectiveProblem(); … … 63 66 64 67 [TestMethod] 68 [TestCategory("Problems.DataAnalysis")] 69 [TestProperty("Time", "long")] 65 70 public void SymbolicDataAnalysisExpressionDeterministicBestCrossoverPerformanceTest() { 66 71 var problem = new SymbolicRegressionSingleObjectiveProblem(); … … 70 75 71 76 [TestMethod] 77 [TestCategory("Problems.DataAnalysis")] 78 [TestProperty("Time", "long")] 72 79 public void SymbolicDataAnalysisExpressionContextAwareCrossoverPerformanceTest() { 73 80 var problem = new SymbolicRegressionSingleObjectiveProblem(); … … 77 84 78 85 [TestMethod] 86 [TestCategory("Problems.DataAnalysis")] 87 [TestProperty("Time", "long")] 79 88 public void SymbolicDataAnalysisExpressionDepthConstrainedCrossoverPerformanceTest() { 80 89 var problem = new SymbolicRegressionSingleObjectiveProblem(); -
trunk/sources/HeuristicLab.Tests/HeuristicLab.Problems.DataAnalysis.Symbolic-3.4/SymbolicDataAnalysisExpressionTreeInterpreterTest.cs
r9764 r9785 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; … … 52 51 53 52 [TestMethod] 53 [TestCategory("Problems.DataAnalysis")] 54 [TestProperty("Time", "long")] 54 55 public void SymbolicDataAnalysisExpressionTreeInterpreterTypeCoherentGrammarPerformanceTest() { 55 56 TypeCoherentGrammarPerformanceTest(new SymbolicDataAnalysisExpressionTreeInterpreter(), 12.5e6); 56 57 } 57 [TestMethod] 58 59 [TestMethod] 60 [TestCategory("Problems.DataAnalysis")] 61 [TestProperty("Time", "long")] 58 62 public void SymbolicDataAnalysisExpressionTreeInterpreterFullGrammarPerformanceTest() { 59 63 FullGrammarPerformanceTest(new SymbolicDataAnalysisExpressionTreeInterpreter(), 12.5e6); 60 64 } 61 [TestMethod] 65 66 [TestMethod] 67 [TestCategory("Problems.DataAnalysis")] 68 [TestProperty("Time", "long")] 62 69 public void SymbolicDataAnalysisExpressionTreeInterpreterArithmeticGrammarPerformanceTest() { 63 70 ArithmeticGrammarPerformanceTest(new SymbolicDataAnalysisExpressionTreeInterpreter(), 12.5e6); … … 65 72 66 73 [TestMethod] 74 [TestCategory("Problems.DataAnalysis")] 75 [TestProperty("Time", "long")] 67 76 public void SymbolicDataAnalysisExpressionTreeILEmittingInterpreterTypeCoherentGrammarPerformanceTest() { 68 77 TypeCoherentGrammarPerformanceTest(new SymbolicDataAnalysisExpressionTreeILEmittingInterpreter(), 7.5e6); 69 78 } 70 [TestMethod] 79 80 [TestMethod] 81 [TestCategory("Problems.DataAnalysis")] 82 [TestProperty("Time", "long")] 71 83 public void SymbolicDataAnalysisExpressionTreeILEmittingInterpreterFullGrammarPerformanceTest() { 72 84 FullGrammarPerformanceTest(new SymbolicDataAnalysisExpressionTreeILEmittingInterpreter(), 7.5e6); 73 85 } 86 87 [TestCategory("Problems.DataAnalysis")] 88 [TestProperty("Time", "long")] 74 89 [TestMethod] 75 90 public void SymbolicDataAnalysisExpressionTreeILEmittingInterpreterArithmeticGrammarPerformanceTest() { … … 135 150 ///</summary> 136 151 [TestMethod] 152 [TestCategory("Problems.DataAnalysis")] 153 [TestProperty("Time", "short")] 137 154 public void SymbolicDataAnalysisExpressionTreeInterpreterEvaluateTest() { 138 155 Dataset ds = new Dataset(new string[] { "Y", "A", "B" }, new double[,] { … … 158 175 159 176 [TestMethod] 177 [TestCategory("Problems.DataAnalysis")] 178 [TestProperty("Time", "short")] 160 179 public void SymbolicDataAnalysisExpressionILEmittingTreeInterpreterEvaluateTest() { 161 180 Dataset ds = new Dataset(new string[] { "Y", "A", "B" }, new double[,] { … … 411 430 try { 412 431 Evaluate(interpreter, ds, "(psi " + x + ")", 0, alglib.psi(x)); 413 } 414 catch (alglib.alglibexception) { // ignore cases where alglib throws an exception 432 } catch (alglib.alglibexception) { // ignore cases where alglib throws an exception 415 433 } 416 434 }; -
trunk/sources/HeuristicLab.Tests/HeuristicLab.Problems.DataAnalysis.Symbolic-3.4/SymbolicDataAnalysisExpressionTreeSimplifierTest.cs
r9764 r9785 23 23 using System.Collections.Generic; 24 24 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 25 using HeuristicLab.Problems.DataAnalysis.Symbolic;26 25 using Microsoft.VisualStudio.TestTools.UnitTesting; 27 26 … … 30 29 [TestClass()] 31 30 public class SymbolicDataAnalysisExpressionTreeSimplifierTest { 31 32 32 [TestMethod] 33 [TestCategory("Problems.DataAnalysis")] 34 [TestProperty("Time", "short")] 33 35 public void SimplifierAxiomsTest() { 34 36 SymbolicExpressionImporter importer = new SymbolicExpressionImporter(); -
trunk/sources/HeuristicLab.Tests/HeuristicLab.Problems.DataAnalysis.Symbolic-3.4/SymbolicExpressionImporter.cs
r9764 r9785 25 25 using System.Linq; 26 26 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 27 using HeuristicLab.Problems.DataAnalysis.Symbolic;28 27 29 28 namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Tests { … … 86 85 StartSymbol startSymbol = new StartSymbol(); 87 86 88 public SymbolicExpressionImporter() {89 }90 91 87 internal ISymbolicExpressionTree Import(string str) { 92 88 str = str.Replace("(", " ( ").Replace(")", " ) "); -
trunk/sources/HeuristicLab.Tests/HeuristicLab.Problems.DataAnalysis.Symbolic-3.4/Util.cs
r9764 r9785 25 25 using System.Linq; 26 26 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 27 using HeuristicLab.Problems.DataAnalysis.Symbolic;28 27 using HeuristicLab.Random; 29 28 namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Tests {
Note: See TracChangeset
for help on using the changeset viewer.