Changeset 10110 for branches/DataAnalysis.IslandAlgorithms/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Evaluators
- Timestamp:
- 11/06/13 10:45:46 (11 years ago)
- Location:
- branches/DataAnalysis.IslandAlgorithms/HeuristicLab.Problems.DataAnalysis.Symbolic
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/DataAnalysis.IslandAlgorithms/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Evaluators/SymbolicDataAnalysisEvaluator.cs
r9456 r10110 47 47 private const string ApplyLinearScalingParameterName = "ApplyLinearScaling"; 48 48 private const string ValidRowIndicatorParameterName = "ValidRowIndicator"; 49 private const string RowsParameterName = "Rows"; 49 50 50 51 public override bool CanChangeName { get { return false; } } … … 82 83 public IValueLookupParameter<StringValue> ValidRowIndicatorParameter { 83 84 get { return (IValueLookupParameter<StringValue>)Parameters[ValidRowIndicatorParameterName]; } 85 } 86 public ILookupParameter<EnumerableItem<int>> RowsParameter { 87 get { return (ILookupParameter<EnumerableItem<int>>)Parameters[RowsParameterName]; } 84 88 } 85 89 #endregion … … 102 106 Parameters.Add(new LookupParameter<BoolValue>(ApplyLinearScalingParameterName, "Flag that indicates if the individual should be linearly scaled before evaluating.")); 103 107 Parameters.Add(new ValueLookupParameter<StringValue>(ValidRowIndicatorParameterName, "An indicator variable in the data set that specifies which rows should be evaluated (those for which the indicator <> 0) (optional).")); 108 Parameters.Add(new LookupParameter<EnumerableItem<int>>(RowsParameterName, "TODO")); 104 109 } 105 110 … … 112 117 if (!Parameters.ContainsKey(ValidRowIndicatorParameterName)) 113 118 Parameters.Add(new ValueLookupParameter<StringValue>(ValidRowIndicatorParameterName, "An indicator variable in the data set that specifies which rows should be evaluated (those for which the indicator <> 0) (optional).")); 119 if (!Parameters.ContainsKey(RowsParameterName)) 120 Parameters.Add(new LookupParameter<EnumerableItem<int>>(RowsParameterName, "TODO")); 114 121 } 115 122 116 123 protected IEnumerable<int> GenerateRowsToEvaluate() { 117 return GenerateRowsToEvaluate(RelativeNumberOfEvaluatedSamplesParameter.ActualValue.Value); 124 IEnumerable<int> rows = null; 125 if (RowsParameter.ActualValue != null) 126 rows = RowsParameter.ActualValue.Enumerable; 127 if (rows == null) rows = GenerateRowsToEvaluate(RelativeNumberOfEvaluatedSamplesParameter.ActualValue.Value); 128 return rows; 118 129 } 119 130
Note: See TracChangeset
for help on using the changeset viewer.