Ignore:
Timestamp:
06/11/14 13:29:00 (8 years ago)
Author:
pfleck
Message:
  • Inverse iterate when backtransforming model
  • Insert CopyColumnTransformation in front of Transformations-List
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DataPreprocessing/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/SymbolicExpressionTreeBacktransformator.cs

    r10883 r10980  
    3737      var symbolicModel = (ISymbolicDataAnalysisModel)model;
    3838
    39       foreach (var transformation in transformations) {
     39      foreach (var transformation in transformations.Reverse()) {
    4040        ApplyBacktransformation(transformation, symbolicModel.SymbolicExpressionTree, targetVariable);
    4141      }
     
    4848          .Where(n => n.VariableName == transformation.Column);
    4949        ApplyRegularBacktransformation(transformation, variableNodes);
    50       } else {
     50      } else if (!(transformation is CopyColumnTransformation)) {
    5151        ApplyInverseBacktransformation(transformation, symbolicExpressionTree);
    5252      }
Note: See TracChangeset for help on using the changeset viewer.