Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/29/12 10:59:55 (11 years ago)
Author:
mkommend
Message:

#1951: Changed SymbolicDataAnalysisModel.Scale to a protected instance method, added the method in the classificaton and regression models and adapted all calls to the Scale method.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/SymbolicDataAnalysisModel.cs

    r8664 r8972  
    6969
    7070    #region Scaling
    71     public static void Scale(ISymbolicDataAnalysisModel model, IDataAnalysisProblemData problemData, string targetVariable) {
     71    protected void Scale(IDataAnalysisProblemData problemData, string targetVariable) {
    7272      var dataset = problemData.Dataset;
    7373      var rows = problemData.TrainingIndices;
    74       var estimatedValues = model.Interpreter.GetSymbolicExpressionTreeValues(model.SymbolicExpressionTree, dataset, rows);
     74      var estimatedValues = Interpreter.GetSymbolicExpressionTreeValues(SymbolicExpressionTree, dataset, rows);
    7575      var targetValues = dataset.GetDoubleValues(targetVariable, rows);
    7676
     
    9494      ConstantTreeNode betaTreeNode = null;
    9595      // check if model has been scaled previously by analyzing the structure of the tree
    96       var startNode = model.SymbolicExpressionTree.Root.GetSubtree(0);
     96      var startNode = SymbolicExpressionTree.Root.GetSubtree(0);
    9797      if (startNode.GetSubtree(0).Symbol is Addition) {
    9898        var addNode = startNode.GetSubtree(0);
Note: See TracChangeset for help on using the changeset viewer.