Free cookie consent management tool by TermsFeed Policy Generator

Changeset 10980


Ignore:
Timestamp:
06/11/14 13:29:00 (10 years ago)
Author:
pfleck
Message:
  • Inverse iterate when backtransforming model
  • Insert CopyColumnTransformation in front of Transformations-List
Location:
branches/DataPreprocessing
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.4/PreprocessingTransformator.cs

    r10976 r10980  
    119119
    120120        var copyTransformation = CreateCopyTransformation(oldName, newName);
    121         preprocessingData.Transformations.Add(copyTransformation);
    122 
     121        preprocessingData.Transformations.Insert(0, copyTransformation);
    123122      }
    124 
    125       //var transformedColumns = transformations.Select(x => x.Column).Distinct();
    126       //foreach (var column in transformedColumns) {
    127       //  var copyTransformation = CreateCopyTransformation(column);
    128       //  preprocessingData.Transformations.Add(copyTransformation);
    129       //}
    130123    }
    131124
  • 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.