Changeset 10695 for branches/DataPreprocessing/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/SymbolicDataAnalysisProblem.cs
- Timestamp:
- 04/02/14 11:38:44 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/SymbolicDataAnalysisProblem.cs
r10673 r10695 54 54 private const string ValidationPartitionParameterName = "ValidationPartition"; 55 55 private const string ApplyLinearScalingParameterName = "ApplyLinearScaling"; 56 private const string TransformationsParameterName = "Transformations";57 56 58 57 private const string ProblemDataParameterDescription = ""; … … 67 66 private const string ValidationPartitionParameterDescription = "The partition of the problem data training partition, that should be used to select the best model from (optional)."; 68 67 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.";70 68 #endregion 71 69 … … 106 104 public IFixedValueParameter<BoolValue> ApplyLinearScalingParameter { 107 105 get { return (IFixedValueParameter<BoolValue>)Parameters[ApplyLinearScalingParameterName]; } 108 }109 public IFixedValueParameter<TransformationCollection> TransformationsParameter {110 get { return (IFixedValueParameter<TransformationCollection>)Parameters[TransformationsParameterName]; }111 106 } 112 107 #endregion … … 172 167 if (GetType().Name.Contains("SymbolicRegression")) 173 168 ApplyLinearScaling.Value = true; 174 }175 176 if (!Parameters.ContainsKey(TransformationsParameterName)) {177 Parameters.Add(new FixedValueParameter<TransformationCollection>(TransformationsParameterName, TransformationsParameterDescrioption, new TransformationCollection()));178 TransformationsParameter.Hidden = true;179 169 } 180 170 … … 199 189 Parameters.Add(new FixedValueParameter<PercentValue>(RelativeNumberOfEvaluatedSamplesParameterName, RelativeNumberOfEvaluatedSamplesParameterDescription, new PercentValue(1))); 200 190 Parameters.Add(new FixedValueParameter<BoolValue>(ApplyLinearScalingParameterName, ApplyLinearScalingParameterDescription, new BoolValue(false))); 201 Parameters.Add(new FixedValueParameter<TransformationCollection>(TransformationsParameterName, TransformationsParameterDescrioption, new TransformationCollection()));202 191 203 192 SymbolicExpressionTreeInterpreterParameter.Hidden = true; … … 205 194 MaximumFunctionDefinitionsParameter.Hidden = true; 206 195 ApplyLinearScalingParameter.Hidden = true; 207 TransformationsParameter.Hidden = true;208 196 209 197 SymbolicExpressionTreeGrammar = new TypeCoherentExpressionGrammar();
Note: See TracChangeset
for help on using the changeset viewer.