Changeset 9885 for stable/HeuristicLab.Tests/HeuristicLab.Problems.DataAnalysis.Symbolic.TimeSeriesPrognosis-3.4
- Timestamp:
- 08/20/13 17:03:31 (11 years ago)
- Location:
- stable
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 9764-9775,9777-9778,9782-9786,9792,9803,9806-9807,9810
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Tests
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Tests merged: 9764-9775,9777-9778,9782-9786,9792,9803,9806
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Tests/HeuristicLab.Problems.DataAnalysis.Symbolic.TimeSeriesPrognosis-3.4/SymbolicDataAnalysisExpressionTreeInterpreterTest.cs
r9456 r9885 25 25 using System.Linq; 26 26 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 27 using HeuristicLab.Problems.DataAnalysis.Symbolic.TimeSeriesPrognosis; 28 using HeuristicLab.Problems.DataAnalysis.Symbolic_34.Tests; 27 using HeuristicLab.Problems.DataAnalysis.Symbolic.Tests; 29 28 using HeuristicLab.Random; 30 29 using Microsoft.VisualStudio.TestTools.UnitTesting; 31 namespace HeuristicLab.Problems.DataAnalysis.Symbolic.TimeSeriesPrognosis _34.Tests {30 namespace HeuristicLab.Problems.DataAnalysis.Symbolic.TimeSeriesPrognosis.Tests { 32 31 33 32 [TestClass()] … … 36 35 private const int Rows = 100; 37 36 private const int Columns = 50; 38 private TestContext testContextInstance;39 40 /// <summary>41 ///Gets or sets the test context which provides42 ///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 37 53 38 [TestMethod] 39 [TestCategory("Problems.DataAnalysis")] 40 [TestProperty("Time", "long")] 54 41 public void SymbolicTimeSeriesPrognosisTreeInterpreterTypeCoherentGrammarPerformanceTest() { 55 42 TypeCoherentGrammarPerformanceTest(new SymbolicTimeSeriesPrognosisExpressionTreeInterpreter("y"), 12.5e6); 56 43 } 44 57 45 [TestMethod] 46 [TestCategory("Problems.DataAnalysis")] 47 [TestProperty("Time", "long")] 58 48 public void SymbolicTimeSeriesPrognosisTreeInterpreterFullGrammarPerformanceTest() { 59 49 FullGrammarPerformanceTest(new SymbolicTimeSeriesPrognosisExpressionTreeInterpreter("y"), 12.5e6); 60 50 } 51 61 52 [TestMethod] 53 [TestCategory("Problems.DataAnalysis")] 54 [TestProperty("Time", "long")] 62 55 public void SymbolicTimeSeriesPrognosisTreeInterpreterArithmeticGrammarPerformanceTest() { 63 56 ArithmeticGrammarPerformanceTest(new SymbolicTimeSeriesPrognosisExpressionTreeInterpreter("y"), 12.5e6); … … 122 115 ///</summary> 123 116 [TestMethod] 117 [TestCategory("Problems.DataAnalysis")] 118 [TestProperty("Time", "short")] 124 119 public void SymbolicDataAnalysisExpressionTreeInterpreterEvaluateTest() { 125 120 Dataset ds = new Dataset(new string[] { "Y", "A", "B" }, new double[,] { … … 144 139 } 145 140 146 //[TestMethod]147 //public void SymbolicDataAnalysisExpressionILEmittingTreeInterpreterEvaluateTest() {148 // Dataset ds = new Dataset(new string[] { "Y", "A", "B" }, new double[,] {149 // { 1.0, 1.0, 1.0 },150 // { 2.0, 2.0, 2.0 },151 // { 3.0, 1.0, 2.0 },152 // { 4.0, 1.0, 1.0 },153 // { 5.0, 2.0, 2.0 },154 // { 6.0, 1.0, 2.0 },155 // { 7.0, 1.0, 1.0 },156 // { 8.0, 2.0, 2.0 },157 // { 9.0, 1.0, 2.0 },158 // { 10.0, 1.0, 1.0 },159 // { 11.0, 2.0, 2.0 },160 // { 12.0, 1.0, 2.0 }161 // });162 163 // var interpreter = new SymbolicDataAnalysisExpressionTreeILEmittingInterpreter();164 // EvaluateTerminals(interpreter, ds);165 // EvaluateOperations(interpreter, ds);166 //}167 168 141 private void EvaluateTerminals(ISymbolicDataAnalysisExpressionTreeInterpreter interpreter, Dataset ds) { 169 142 // constants -
stable/HeuristicLab.Tests/HeuristicLab.Problems.DataAnalysis.Symbolic.TimeSeriesPrognosis-3.4/Util.cs
r9456 r9885 26 26 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 27 27 using HeuristicLab.Random; 28 namespace HeuristicLab.Problems.DataAnalysis.Symbolic.TimeSeriesPrognosis_34.Tests { 28 29 namespace HeuristicLab.Problems.DataAnalysis.Symbolic.TimeSeriesPrognosis.Tests { 29 30 internal class Util { 30 31 public static void InitTree(ISymbolicExpressionTree tree, MersenneTwister twister, List<string> varNames) {
Note: See TracChangeset
for help on using the changeset viewer.