Changeset 4459
- Timestamp:
- 09/21/10 14:12:27 (14 years ago)
- Location:
- branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis/3.3/Tests
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis/3.3/Tests/HeuristicLab.Problems.DataAnalysis.Tests-3.3.csproj
r4236 r4459 69 69 <ErrorReport>prompt</ErrorReport> 70 70 </PropertyGroup> 71 <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'"> 72 <DebugSymbols>true</DebugSymbols> 73 <OutputPath>bin\x86\Debug\</OutputPath> 74 <DefineConstants>DEBUG;TRACE</DefineConstants> 75 <DebugType>full</DebugType> 76 <PlatformTarget>x86</PlatformTarget> 77 <CodeAnalysisLogFile>bin\Debug\HeuristicLab.Problems.DataAnalysis.Tests-3.3.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile> 78 <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression> 79 <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile> 80 <ErrorReport>prompt</ErrorReport> 81 <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> 82 <CodeAnalysisRuleSetDirectories>;c:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories> 83 <CodeAnalysisRuleDirectories>;c:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories> 84 <CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules> 85 <CodeAnalysisFailOnMissingRules>false</CodeAnalysisFailOnMissingRules> 86 </PropertyGroup> 87 <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'"> 88 <OutputPath>bin\x86\Release\</OutputPath> 89 <DefineConstants>TRACE</DefineConstants> 90 <Optimize>true</Optimize> 91 <DebugType>pdbonly</DebugType> 92 <PlatformTarget>x86</PlatformTarget> 93 <CodeAnalysisLogFile>bin\Release\HeuristicLab.Problems.DataAnalysis.Tests-3.3.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile> 94 <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression> 95 <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile> 96 <ErrorReport>prompt</ErrorReport> 97 <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> 98 <CodeAnalysisRuleSetDirectories>;c:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories> 99 <CodeAnalysisRuleDirectories>;c:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories> 100 <CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules> 101 <CodeAnalysisFailOnMissingRules>false</CodeAnalysisFailOnMissingRules> 102 </PropertyGroup> 71 103 <ItemGroup> 72 104 <Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" /> … … 118 150 <Project>{14AB8D24-25BC-400C-A846-4627AA945192}</Project> 119 151 <Name>HeuristicLab.Optimization-3.3</Name> 152 </ProjectReference> 153 <ProjectReference Include="..\..\..\HeuristicLab.Parameters\3.3\HeuristicLab.Parameters-3.3.csproj"> 154 <Project>{56F9106A-079F-4C61-92F6-86A84C2D84B7}</Project> 155 <Name>HeuristicLab.Parameters-3.3</Name> 120 156 </ProjectReference> 121 157 <ProjectReference Include="..\..\..\HeuristicLab.Problems.DataAnalysis.Regression\3.3\HeuristicLab.Problems.DataAnalysis.Regression-3.3.csproj"> -
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis/3.3/Tests/LinearScalingTest.cs
r4001 r4459 36 36 [TestClass()] 37 37 public class LinearScalingTest { 38 [TestMethod ()]38 [TestMethod] 39 39 public void CalculateScalingParametersTest() { 40 40 var testData = new double[,] { -
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis/3.3/Tests/SimpleArithmeticExpressionInterpreterTest.cs
r4068 r4459 70 70 } 71 71 72 73 [TestMethod()] 72 [TestMethod] 74 73 public void SimpleArithmeticExpressionInterpreterPerformanceTest() { 75 74 double[] estimation = new double[Rows]; … … 85 84 ///A test for Evaluate 86 85 ///</summary> 87 [TestMethod ()]86 [TestMethod] 88 87 public void SimpleArithmeticExpressionInterpreterEvaluateTest() { 89 88 -
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis/3.3/Tests/StatisticCalculatorsTest.cs
r4122 r4459 61 61 }; 62 62 63 [TestMethod ()]63 [TestMethod] 64 64 public void CalculateMeanAndVarianceTest() { 65 65 System.Random random = new System.Random(31415); … … 92 92 } 93 93 94 [TestMethod ()]94 [TestMethod] 95 95 public void CalculatePearsonsRSquaredTest() { 96 96 System.Random random = new System.Random(31415); -
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis/3.3/Tests/SymbolicSimplifierTest.cs
r4237 r4459 40 40 [TestClass()] 41 41 public class SymbolicSimplifierTest { 42 [TestMethod()]43 42 [DeploymentItem(@"RegressionSolution01.hl")] 44 43 [DeploymentItem(@"RegressionSolution02.hl")] … … 47 46 [DeploymentItem(@"RegressionSolution05.hl")] 48 47 [DeploymentItem(@"RegressionSolution06.hl")] 48 [TestMethod] 49 49 public void SimplifyRegressionSolutionsTest() { 50 50 ContentManager.Initialize(new PersistenceContentManager()); … … 98 98 private SymbolicRegressionSolution SimplifySolution(SymbolicRegressionSolution original) { 99 99 SymbolicSimplifier simplifier = new SymbolicSimplifier(); 100 SymbolicExpressionTree simplifiedExpression = simplifier.Simplify(original.Model.SymbolicExpressionTree); 101 SymbolicExpressionTreeNode root = new ProgramRootSymbol().CreateTreeNode(); 102 SymbolicExpressionTreeNode start = new StartSymbol().CreateTreeNode(); 103 root.AddSubTree(start); 104 start.AddSubTree(simplifiedExpression.Root); 105 SymbolicExpressionTree simplifiedTree = new SymbolicExpressionTree(root); 100 SymbolicExpressionTree simplifiedTree = simplifier.Simplify(original.Model.SymbolicExpressionTree); 106 101 SymbolicRegressionModel simplifiedModel = new SymbolicRegressionModel(original.Model.Interpreter, simplifiedTree); 107 102 return new SymbolicRegressionSolution(original.ProblemData, simplifiedModel, original.LowerEstimationLimit, original.UpperEstimationLimit);
Note: See TracChangeset
for help on using the changeset viewer.