Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/23/10 17:12:30 (14 years ago)
Author:
gkronber
Message:

Merged r4458, r4459,r4462,r4464 from data analysis exploration branch into trunk. #1142

Location:
trunk/sources
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources

  • trunk/sources/HeuristicLab.Problems.DataAnalysis

  • trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/Symbolic/SymbolicSimplifier.cs

    r4398 r4477  
    4444      // macro expand (initially no argument trees)
    4545      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);
    4749    }
    4850
     
    6365        // return the correct argument sub-tree (already macro-expanded)
    6466        return (SymbolicExpressionTreeNode)argumentTrees[argSym.ArgumentIndex].Clone();
    65       } else if (node.Symbol is StartSymbol) {
    66         return MacroExpand(root, subtrees[0], argumentTrees);
    6767      } else {
    6868        // recursive application
  • trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/Tests/HeuristicLab.Problems.DataAnalysis.Tests-3.3.csproj

    r4256 r4477  
    8080    <ErrorReport>prompt</ErrorReport>
    8181    <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
    82     <CodeAnalysisRuleSetDirectories>;C:\Program Files\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories>
    83     <CodeAnalysisIgnoreBuiltInRuleSets>true</CodeAnalysisIgnoreBuiltInRuleSets>
    84     <CodeAnalysisRuleDirectories>;C:\Program Files\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories>
    85     <CodeAnalysisIgnoreBuiltInRules>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>
    8686  </PropertyGroup>
    8787  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
     
    9696    <ErrorReport>prompt</ErrorReport>
    9797    <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>
    101100    <CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules>
     101    <CodeAnalysisFailOnMissingRules>false</CodeAnalysisFailOnMissingRules>
    102102  </PropertyGroup>
    103103  <ItemGroup>
     
    150150      <Project>{14AB8D24-25BC-400C-A846-4627AA945192}</Project>
    151151      <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>
    152156    </ProjectReference>
    153157    <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  
    3636  [TestClass()]
    3737  public class LinearScalingTest {
    38     [TestMethod()]
     38    [TestMethod]
    3939    public void CalculateScalingParametersTest() {
    4040      var testData = new double[,] {
  • trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/Tests/SimpleArithmeticExpressionInterpreterTest.cs

    r4068 r4477  
    7070    }
    7171
    72 
    73     [TestMethod()]
     72    [TestMethod]
    7473    public void SimpleArithmeticExpressionInterpreterPerformanceTest() {
    7574      double[] estimation = new double[Rows];
     
    8584    ///A test for Evaluate
    8685    ///</summary>
    87     [TestMethod()]
     86    [TestMethod]
    8887    public void SimpleArithmeticExpressionInterpreterEvaluateTest() {
    8988
  • trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/Tests/StatisticCalculatorsTest.cs

    r4122 r4477  
    6161      };
    6262
    63     [TestMethod()]
     63    [TestMethod]
    6464    public void CalculateMeanAndVarianceTest() {
    6565      System.Random random = new System.Random(31415);
     
    9292    }
    9393
    94     [TestMethod()]
     94    [TestMethod]
    9595    public void CalculatePearsonsRSquaredTest() {
    9696      System.Random random = new System.Random(31415);
  • trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/Tests/SymbolicSimplifierTest.cs

    r4239 r4477  
    4040  [TestClass()]
    4141  public class SymbolicSimplifierTest {
    42     [TestMethod()]
    4342    [DeploymentItem(@"RegressionSolution01.hl")]
    4443    [DeploymentItem(@"RegressionSolution02.hl")]
     
    4746    [DeploymentItem(@"RegressionSolution05.hl")]
    4847    [DeploymentItem(@"RegressionSolution06.hl")]
     48    [TestMethod]
    4949    public void SimplifyRegressionSolutionsTest() {
    5050      ContentManager.Initialize(new PersistenceContentManager());
     
    9898    private SymbolicRegressionSolution SimplifySolution(SymbolicRegressionSolution original) {
    9999      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);
    106101      SymbolicRegressionModel simplifiedModel = new SymbolicRegressionModel(original.Model.Interpreter, simplifiedTree);
    107102      return new SymbolicRegressionSolution(original.ProblemData, simplifiedModel, original.LowerEstimationLimit, original.UpperEstimationLimit);
Note: See TracChangeset for help on using the changeset viewer.