Changeset 11203 for branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Problems.DataAnalysis.Symbolic.TimeSeriesPrognosis-3.4
- Timestamp:
- 07/18/14 12:35:00 (10 years ago)
- Location:
- branches/HiveStatistics/sources
- Files:
-
- 4 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.TimeSeriesPrognosis-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.Tests; 27 using HeuristicLab.Problems.DataAnalysis.Symbolic.TimeSeriesPrognosis; 28 using HeuristicLab.Problems.DataAnalysis.Symbolic_34.Tests; 28 29 using HeuristicLab.Random; 29 30 using Microsoft.VisualStudio.TestTools.UnitTesting; 30 namespace HeuristicLab.Problems.DataAnalysis.Symbolic.TimeSeriesPrognosis .Tests {31 namespace HeuristicLab.Problems.DataAnalysis.Symbolic.TimeSeriesPrognosis_34.Tests { 31 32 32 33 [TestClass()] … … 35 36 private const int Rows = 100; 36 37 private const int Columns = 50; 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 } 37 52 38 53 [TestMethod] 39 [TestCategory("Problems.DataAnalysis.Symbolic")] 40 [TestProperty("Time", "long")] 41 public void TimeSeriesPrognosisInterpreterTestTypeCoherentGrammarPerformance() { 42 TestTypeCoherentGrammarPerformance(new SymbolicTimeSeriesPrognosisExpressionTreeInterpreter("y"), 12.5e6); 43 } 44 54 public void SymbolicTimeSeriesPrognosisTreeInterpreterTypeCoherentGrammarPerformanceTest() { 55 TypeCoherentGrammarPerformanceTest(new SymbolicTimeSeriesPrognosisExpressionTreeInterpreter("y"), 12.5e6); 56 } 45 57 [TestMethod] 46 [TestCategory("Problems.DataAnalysis.Symbolic")] 47 [TestProperty("Time", "long")] 48 public void TimeSeriesPrognosisInterpreterTestFullGrammarPerformance() { 49 TestFullGrammarPerformance(new SymbolicTimeSeriesPrognosisExpressionTreeInterpreter("y"), 12.5e6); 50 } 51 58 public void SymbolicTimeSeriesPrognosisTreeInterpreterFullGrammarPerformanceTest() { 59 FullGrammarPerformanceTest(new SymbolicTimeSeriesPrognosisExpressionTreeInterpreter("y"), 12.5e6); 60 } 52 61 [TestMethod] 53 [TestCategory("Problems.DataAnalysis.Symbolic")] 54 [TestProperty("Time", "long")] 55 public void TimeSeriesPrognosisInterpreterTestArithmeticGrammarPerformance() { 56 TestArithmeticGrammarPerformance(new SymbolicTimeSeriesPrognosisExpressionTreeInterpreter("y"), 12.5e6); 57 } 58 59 private void TestTypeCoherentGrammarPerformance(ISymbolicTimeSeriesPrognosisExpressionTreeInterpreter interpreter, double nodesPerSecThreshold) { 62 public void SymbolicTimeSeriesPrognosisTreeInterpreterArithmeticGrammarPerformanceTest() { 63 ArithmeticGrammarPerformanceTest(new SymbolicTimeSeriesPrognosisExpressionTreeInterpreter("y"), 12.5e6); 64 } 65 66 private void TypeCoherentGrammarPerformanceTest(ISymbolicTimeSeriesPrognosisExpressionTreeInterpreter interpreter, double nodesPerSecThreshold) { 60 67 var twister = new MersenneTwister(31415); 61 68 var dataset = Util.CreateRandomDataset(twister, Rows, Columns); … … 75 82 } 76 83 77 private void TestFullGrammarPerformance(ISymbolicTimeSeriesPrognosisExpressionTreeInterpreter interpreter, double nodesPerSecThreshold) {84 private void FullGrammarPerformanceTest(ISymbolicTimeSeriesPrognosisExpressionTreeInterpreter interpreter, double nodesPerSecThreshold) { 78 85 var twister = new MersenneTwister(31415); 79 86 var dataset = Util.CreateRandomDataset(twister, Rows, Columns); … … 92 99 } 93 100 94 private void TestArithmeticGrammarPerformance(ISymbolicTimeSeriesPrognosisExpressionTreeInterpreter interpreter, double nodesPerSecThreshold) {101 private void ArithmeticGrammarPerformanceTest(ISymbolicTimeSeriesPrognosisExpressionTreeInterpreter interpreter, double nodesPerSecThreshold) { 95 102 var twister = new MersenneTwister(31415); 96 103 var dataset = Util.CreateRandomDataset(twister, Rows, Columns); … … 115 122 ///</summary> 116 123 [TestMethod] 117 [TestCategory("Problems.DataAnalysis.Symbolic")] 118 [TestProperty("Time", "short")] 119 public void TimeSeriesPrognosisInterpreterTestEvaluation() { 124 public void SymbolicDataAnalysisExpressionTreeInterpreterEvaluateTest() { 120 125 Dataset ds = new Dataset(new string[] { "Y", "A", "B" }, new double[,] { 121 126 { 1.0, 1.0, 1.0 }, … … 139 144 } 140 145 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 141 168 private void EvaluateTerminals(ISymbolicDataAnalysisExpressionTreeInterpreter interpreter, Dataset ds) { 142 169 // constants -
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Problems.DataAnalysis.Symbolic.TimeSeriesPrognosis-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. … … 26 26 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 27 27 using HeuristicLab.Random; 28 29 namespace HeuristicLab.Problems.DataAnalysis.Symbolic.TimeSeriesPrognosis.Tests { 28 namespace HeuristicLab.Problems.DataAnalysis.Symbolic.TimeSeriesPrognosis_34.Tests { 30 29 internal class Util { 31 30 public static void InitTree(ISymbolicExpressionTree tree, MersenneTwister twister, List<string> varNames) {
Note: See TracChangeset
for help on using the changeset viewer.