Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/12/14 14:14:33 (8 years ago)
Author:
pfleck
Message:
  • Cloned Model before backtransformation.
  • Set new Model instead of whole Solution after backtransformation.
File:
1 edited

Legend:

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

    r10980 r11011  
    3434    }
    3535
    36     public void Backtransform(IDataAnalysisModel model, IEnumerable<ITransformation> transformations, string targetVariable) {
    37       var symbolicModel = (ISymbolicDataAnalysisModel)model;
     36    public IDataAnalysisModel Backtransform(IDataAnalysisModel model, IEnumerable<ITransformation> transformations, string targetVariable) {
     37      var symbolicModel = (ISymbolicDataAnalysisModel)model.Clone();
    3838
    3939      foreach (var transformation in transformations.Reverse()) {
    4040        ApplyBacktransformation(transformation, symbolicModel.SymbolicExpressionTree, targetVariable);
    4141      }
     42
     43      return symbolicModel;
    4244    }
    4345
Note: See TracChangeset for help on using the changeset viewer.