Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/17/11 14:07:47 (14 years ago)
Author:
mkommend
Message:

#1418: Corrected problem interfaces & unified naming of subtrees.

Location:
branches/DataAnalysis Refactoring/HeuristicLab.Algorithms.DataAnalysis/3.4/Linear
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/DataAnalysis Refactoring/HeuristicLab.Algorithms.DataAnalysis/3.4/Linear/LinearDiscriminantAnalysis.cs

    r5681 r5733  
    9090      ISymbolicExpressionTree tree = new SymbolicExpressionTree(new ProgramRootSymbol().CreateTreeNode());
    9191      ISymbolicExpressionTreeNode startNode = new StartSymbol().CreateTreeNode();
    92       tree.Root.AddSubTree(startNode);
     92      tree.Root.AddSubtree(startNode);
    9393      ISymbolicExpressionTreeNode addition = new Addition().CreateTreeNode();
    94       startNode.AddSubTree(addition);
     94      startNode.AddSubtree(addition);
    9595
    9696      int col = 0;
     
    9999        vNode.VariableName = column;
    100100        vNode.Weight = w[col];
    101         addition.AddSubTree(vNode);
     101        addition.AddSubtree(vNode);
    102102        col++;
    103103      }
     
    105105      ConstantTreeNode cNode = (ConstantTreeNode)new Constant().CreateTreeNode();
    106106      cNode.Value = w[w.Length - 1];
    107       addition.AddSubTree(cNode);
     107      addition.AddSubtree(cNode);
    108108
    109109
  • branches/DataAnalysis Refactoring/HeuristicLab.Algorithms.DataAnalysis/3.4/Linear/LinearRegression.cs

    r5658 r5733  
    9494      ISymbolicExpressionTree tree = new SymbolicExpressionTree(new ProgramRootSymbol().CreateTreeNode());
    9595      ISymbolicExpressionTreeNode startNode = new StartSymbol().CreateTreeNode();
    96       tree.Root.AddSubTree(startNode);
     96      tree.Root.AddSubtree(startNode);
    9797      ISymbolicExpressionTreeNode addition = new Addition().CreateTreeNode();
    98       startNode.AddSubTree(addition);
     98      startNode.AddSubtree(addition);
    9999
    100100      int col = 0;
     
    103103        vNode.VariableName = column;
    104104        vNode.Weight = coefficients[col];
    105         addition.AddSubTree(vNode);
     105        addition.AddSubtree(vNode);
    106106        col++;
    107107      }
     
    109109      ConstantTreeNode cNode = (ConstantTreeNode)new Constant().CreateTreeNode();
    110110      cNode.Value = coefficients[coefficients.Length - 1];
    111       addition.AddSubTree(cNode);
     111      addition.AddSubtree(cNode);
    112112
    113113      SymbolicRegressionSolution solution = new SymbolicRegressionSolution(new SymbolicRegressionModel(tree, new SymbolicDataAnalysisExpressionTreeInterpreter()), problemData);
Note: See TracChangeset for help on using the changeset viewer.