Changeset 4477 for trunk/sources/HeuristicLab.Problems.DataAnalysis
- Timestamp:
- 09/23/10 17:12:30 (14 years ago)
- Location:
- trunk/sources
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources
-
Property
svn:mergeinfo
set to
/branches/DataAnalysis merged eligible
-
Property
svn:mergeinfo
set to
-
trunk/sources/HeuristicLab.Problems.DataAnalysis
- Property svn:mergeinfo changed
/branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis merged: 4459,4462
- Property svn:mergeinfo changed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/Symbolic/SymbolicSimplifier.cs
r4398 r4477 44 44 // macro expand (initially no argument trees) 45 45 var macroExpandedTree = MacroExpand(clone, clone.SubTrees[0], new List<SymbolicExpressionTreeNode>()); 46 return new SymbolicExpressionTree(GetSimplifiedTree(macroExpandedTree)); 46 SymbolicExpressionTreeNode rootNode = (new ProgramRootSymbol()).CreateTreeNode(); 47 rootNode.AddSubTree(GetSimplifiedTree(macroExpandedTree)); 48 return new SymbolicExpressionTree(rootNode); 47 49 } 48 50 … … 63 65 // return the correct argument sub-tree (already macro-expanded) 64 66 return (SymbolicExpressionTreeNode)argumentTrees[argSym.ArgumentIndex].Clone(); 65 } else if (node.Symbol is StartSymbol) {66 return MacroExpand(root, subtrees[0], argumentTrees);67 67 } else { 68 68 // recursive application -
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/Tests/HeuristicLab.Problems.DataAnalysis.Tests-3.3.csproj
r4256 r4477 80 80 <ErrorReport>prompt</ErrorReport> 81 81 <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> 82 <CodeAnalysisRuleSetDirectories>; C:\Program Files\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories>83 <CodeAnalysis IgnoreBuiltInRuleSets>true</CodeAnalysisIgnoreBuiltInRuleSets>84 <CodeAnalysis RuleDirectories>;C:\Program Files\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories>85 <CodeAnalysis IgnoreBuiltInRules>true</CodeAnalysisIgnoreBuiltInRules>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 86 </PropertyGroup> 87 87 <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'"> … … 96 96 <ErrorReport>prompt</ErrorReport> 97 97 <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> 98 <CodeAnalysisRuleSetDirectories>;C:\Program Files\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories> 99 <CodeAnalysisIgnoreBuiltInRuleSets>false</CodeAnalysisIgnoreBuiltInRuleSets> 100 <CodeAnalysisRuleDirectories>;C:\Program Files\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories> 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> 101 100 <CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules> 101 <CodeAnalysisFailOnMissingRules>false</CodeAnalysisFailOnMissingRules> 102 102 </PropertyGroup> 103 103 <ItemGroup> … … 150 150 <Project>{14AB8D24-25BC-400C-A846-4627AA945192}</Project> 151 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> 152 156 </ProjectReference> 153 157 <ProjectReference Include="..\..\..\HeuristicLab.Problems.DataAnalysis.Regression\3.3\HeuristicLab.Problems.DataAnalysis.Regression-3.3.csproj"> -
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/Tests/LinearScalingTest.cs
r4001 r4477 36 36 [TestClass()] 37 37 public class LinearScalingTest { 38 [TestMethod ()]38 [TestMethod] 39 39 public void CalculateScalingParametersTest() { 40 40 var testData = new double[,] { -
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/Tests/SimpleArithmeticExpressionInterpreterTest.cs
r4068 r4477 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 -
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/Tests/StatisticCalculatorsTest.cs
r4122 r4477 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); -
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/Tests/SymbolicSimplifierTest.cs
r4239 r4477 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.