Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/23/18 15:27:53 (6 years ago)
Author:
pfleck
Message:

#2906 Fixed inverse transform early removal of columns.

Location:
branches/2906_Transformations/HeuristicLab.Problems.DataAnalysis/3.4/Implementation
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2906_Transformations/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/DataAnalysisProblemData.cs

    r15856 r15858  
    310310        }
    311311
    312         bool transformedVariablePending = transformationsStack.Any(x => x.OriginalVariable == transformation.TransformedVariable);
     312        bool transformedVariablePending = transformationsStack.Any(x => x.OriginalVariable == transformation.TransformedVariable || x.TransformedVariable == transformation.TransformedVariable);
    313313        if (removeVirtualVariables && !transformedVariablePending)
    314314          modifiableDataset.RemoveVariable(transformation.TransformedVariable);
  • branches/2906_Transformations/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/DataAnalysisTransformation.cs

    r15846 r15858  
    2929using HeuristicLab.Parameters;
    3030using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    31 using HeuristicLab.PluginInfrastructure;
    3231
    3332namespace HeuristicLab.Problems.DataAnalysis {
     
    8382      Parameters.Add(new ConstrainedValueParameter<StringValue>("Transformed Variable", new ItemSet<StringValue>(transformedVariables), transformedVariables.FirstOrDefault()));
    8483
    85       var transformations = new ItemSet<ITransformation>(ApplicationManager.Manager.GetInstances<ITransformation>());
    86       Parameters.Add(new ConstrainedValueParameter<ITransformation>("Transformation", transformations, transformations.OfType<IdentityTransformation>().Single()));
     84      //var transformations = new ItemSet<ITransformation>(ApplicationManager.Manager.GetInstances<ITransformation>());
     85      Parameters.Add(new ValueParameter<ITransformation>("Transformation", new IdentityTransformation()));
    8786
    8887      RegisterEventHandlers();
Note: See TracChangeset for help on using the changeset viewer.