Changeset 11205 for branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Problems.DataAnalysis.Symbolic.TimeSeriesPrognosis-3.4
- Timestamp:
- 07/18/14 13:44:53 (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.dll 10 11 HeuristicLab 3.3.5.1.ReSharper.user 11 12 HeuristicLab 3.3.6.0.ReSharper.user 12 13 HeuristicLab.4.5.resharper.user 13 14 HeuristicLab.ExtLibs.6.0.ReSharper.user 15 HeuristicLab.Scripting.Development 14 16 HeuristicLab.resharper.user 15 17 ProtoGen.exe … … 17 19 _ReSharper.HeuristicLab 18 20 _ReSharper.HeuristicLab 3.3 21 _ReSharper.HeuristicLab 3.3 Tests 19 22 _ReSharper.HeuristicLab.ExtLibs 20 23 bin 21 24 protoc.exe 22 _ReSharper.HeuristicLab 3.3 Tests23 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
r11203 r11205 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2014 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.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] 54 public void SymbolicTimeSeriesPrognosisTreeInterpreterTypeCoherentGrammarPerformanceTest() { 55 TypeCoherentGrammarPerformanceTest(new SymbolicTimeSeriesPrognosisExpressionTreeInterpreter("y"), 12.5e6); 56 } 39 [TestCategory("Problems.DataAnalysis.Symbolic")] 40 [TestProperty("Time", "long")] 41 public void TimeSeriesPrognosisInterpreterTestTypeCoherentGrammarPerformance() { 42 TestTypeCoherentGrammarPerformance(new SymbolicTimeSeriesPrognosisExpressionTreeInterpreter("y"), 12.5e6); 43 } 44 57 45 [TestMethod] 58 public void SymbolicTimeSeriesPrognosisTreeInterpreterFullGrammarPerformanceTest() { 59 FullGrammarPerformanceTest(new SymbolicTimeSeriesPrognosisExpressionTreeInterpreter("y"), 12.5e6); 60 } 46 [TestCategory("Problems.DataAnalysis.Symbolic")] 47 [TestProperty("Time", "long")] 48 public void TimeSeriesPrognosisInterpreterTestFullGrammarPerformance() { 49 TestFullGrammarPerformance(new SymbolicTimeSeriesPrognosisExpressionTreeInterpreter("y"), 12.5e6); 50 } 51 61 52 [TestMethod] 62 public void SymbolicTimeSeriesPrognosisTreeInterpreterArithmeticGrammarPerformanceTest() { 63 ArithmeticGrammarPerformanceTest(new SymbolicTimeSeriesPrognosisExpressionTreeInterpreter("y"), 12.5e6); 64 } 65 66 private void TypeCoherentGrammarPerformanceTest(ISymbolicTimeSeriesPrognosisExpressionTreeInterpreter interpreter, double nodesPerSecThreshold) { 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) { 67 60 var twister = new MersenneTwister(31415); 68 61 var dataset = Util.CreateRandomDataset(twister, Rows, Columns); … … 82 75 } 83 76 84 private void FullGrammarPerformanceTest(ISymbolicTimeSeriesPrognosisExpressionTreeInterpreter interpreter, double nodesPerSecThreshold) {77 private void TestFullGrammarPerformance(ISymbolicTimeSeriesPrognosisExpressionTreeInterpreter interpreter, double nodesPerSecThreshold) { 85 78 var twister = new MersenneTwister(31415); 86 79 var dataset = Util.CreateRandomDataset(twister, Rows, Columns); … … 99 92 } 100 93 101 private void ArithmeticGrammarPerformanceTest(ISymbolicTimeSeriesPrognosisExpressionTreeInterpreter interpreter, double nodesPerSecThreshold) {94 private void TestArithmeticGrammarPerformance(ISymbolicTimeSeriesPrognosisExpressionTreeInterpreter interpreter, double nodesPerSecThreshold) { 102 95 var twister = new MersenneTwister(31415); 103 96 var dataset = Util.CreateRandomDataset(twister, Rows, Columns); … … 122 115 ///</summary> 123 116 [TestMethod] 124 public void SymbolicDataAnalysisExpressionTreeInterpreterEvaluateTest() { 117 [TestCategory("Problems.DataAnalysis.Symbolic")] 118 [TestProperty("Time", "short")] 119 public void TimeSeriesPrognosisInterpreterTestEvaluation() { 125 120 Dataset ds = new Dataset(new string[] { "Y", "A", "B" }, new double[,] { 126 121 { 1.0, 1.0, 1.0 }, … … 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 -
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Problems.DataAnalysis.Symbolic.TimeSeriesPrognosis-3.4/Util.cs
r11203 r11205 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2014 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 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.