Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/26/14 16:37:02 (11 years ago)
Author:
pfleck
Message:
  • Preprocessing Plugin now uses ISymbolicDataAnalysisProblem instead of IDataAnalysisProblem
  • Added TransformationCollection to ISymbolicDataAnalysisProblem as hidden parameter
Location:
branches/DataPreprocessing/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • branches/DataPreprocessing/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/HeuristicLab.Problems.DataAnalysis.Symbolic-3.4.csproj

    r10538 r10673  
    221221    <Compile Include="Symbols\VariableConditionTreeNode.cs" />
    222222    <Compile Include="Symbols\VariableTreeNode.cs" />
     223    <Compile Include="TransformationCollection.cs" />
    223224    <None Include="HeuristicLab.snk" />
    224225    <None Include="Plugin.cs.frame" />
  • branches/DataPreprocessing/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Interfaces/ISymbolicDataAnalysisProblem.cs

    r9456 r10673  
    3535    IFixedValueParameter<IntRange> FitnessCalculationPartitionParameter { get; }
    3636    IFixedValueParameter<IntRange> ValidationPartitionParameter { get; }
     37    IFixedValueParameter<TransformationCollection> TransformationsParameter { get; }
    3738
    3839    ISymbolicDataAnalysisGrammar SymbolicExpressionTreeGrammar { get; set; }
  • branches/DataPreprocessing/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/SymbolicDataAnalysisProblem.cs

    r9830 r10673  
    5454    private const string ValidationPartitionParameterName = "ValidationPartition";
    5555    private const string ApplyLinearScalingParameterName = "ApplyLinearScaling";
     56    private const string TransformationsParameterName = "Transformations";
    5657
    5758    private const string ProblemDataParameterDescription = "";
     
    6667    private const string ValidationPartitionParameterDescription = "The partition of the problem data training partition, that should be used to select the best model from (optional).";
    6768    private const string ApplyLinearScalingParameterDescription = "Flag that indicates if the individual should be linearly scaled before evaluating.";
     69    private const string TransformationsParameterDescrioption = "The transformations which were applied on the input variables.";
    6870    #endregion
    6971
     
    104106    public IFixedValueParameter<BoolValue> ApplyLinearScalingParameter {
    105107      get { return (IFixedValueParameter<BoolValue>)Parameters[ApplyLinearScalingParameterName]; }
     108    }
     109    public IFixedValueParameter<TransformationCollection> TransformationsParameter {
     110      get { return (IFixedValueParameter<TransformationCollection>)Parameters[TransformationsParameterName]; }
    106111    }
    107112    #endregion
     
    167172        if (GetType().Name.Contains("SymbolicRegression"))
    168173          ApplyLinearScaling.Value = true;
     174      }
     175
     176      if (!Parameters.ContainsKey(TransformationsParameterName)) {
     177        Parameters.Add(new FixedValueParameter<TransformationCollection>(TransformationsParameterName, TransformationsParameterDescrioption, new TransformationCollection()));
     178        TransformationsParameter.Hidden = true;
    169179      }
    170180
     
    189199      Parameters.Add(new FixedValueParameter<PercentValue>(RelativeNumberOfEvaluatedSamplesParameterName, RelativeNumberOfEvaluatedSamplesParameterDescription, new PercentValue(1)));
    190200      Parameters.Add(new FixedValueParameter<BoolValue>(ApplyLinearScalingParameterName, ApplyLinearScalingParameterDescription, new BoolValue(false)));
     201      Parameters.Add(new FixedValueParameter<TransformationCollection>(TransformationsParameterName, TransformationsParameterDescrioption, new TransformationCollection()));
    191202
    192203      SymbolicExpressionTreeInterpreterParameter.Hidden = true;
     
    194205      MaximumFunctionDefinitionsParameter.Hidden = true;
    195206      ApplyLinearScalingParameter.Hidden = true;
     207      TransformationsParameter.Hidden = true;
    196208
    197209      SymbolicExpressionTreeGrammar = new TypeCoherentExpressionGrammar();
Note: See TracChangeset for help on using the changeset viewer.