Changeset 10110 for branches/DataAnalysis.IslandAlgorithms
- Timestamp:
- 11/06/13 10:45:46 (11 years ago)
- Location:
- branches/DataAnalysis.IslandAlgorithms/HeuristicLab.Problems.DataAnalysis.Symbolic
- Files:
-
- 2 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 -
branches/DataAnalysis.IslandAlgorithms/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/HeuristicLab.Problems.DataAnalysis.Symbolic-3.4.csproj
r9828 r10110 46 46 <WarningLevel>4</WarningLevel> 47 47 <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> 48 <Prefer32Bit>false</Prefer32Bit> 48 49 </PropertyGroup> 49 50 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> … … 55 56 <WarningLevel>4</WarningLevel> 56 57 <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> 58 <Prefer32Bit>false</Prefer32Bit> 57 59 </PropertyGroup> 58 60 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' "> … … 64 66 <ErrorReport>prompt</ErrorReport> 65 67 <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> 68 <Prefer32Bit>false</Prefer32Bit> 66 69 </PropertyGroup> 67 70 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' "> … … 73 76 <ErrorReport>prompt</ErrorReport> 74 77 <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> 78 <Prefer32Bit>false</Prefer32Bit> 75 79 </PropertyGroup> 76 80 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' "> … … 82 86 <ErrorReport>prompt</ErrorReport> 83 87 <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> 88 <Prefer32Bit>false</Prefer32Bit> 84 89 </PropertyGroup> 85 90 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' "> … … 91 96 <ErrorReport>prompt</ErrorReport> 92 97 <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> 98 <Prefer32Bit>false</Prefer32Bit> 93 99 </PropertyGroup> 94 100 <ItemGroup> … … 143 149 <Compile Include="Interfaces\ISymbolicDataAnalysisExpressionCrossover.cs" /> 144 150 <Compile Include="Interfaces\ISymbolicDataAnalysisImpactValuesCalculator.cs" /> 151 <Compile Include="Interpreter\ExpressionTreeInterpreter.cs" /> 145 152 <Compile Include="Interpreter\InterpreterState.cs" /> 146 153 <Compile Include="Interpreter\OpCodes.cs" />
Note: See TracChangeset
for help on using the changeset viewer.