Changeset 2454 for trunk/sources/HeuristicLab.GP.StructureIdentification
- Timestamp:
- 10/29/09 16:07:55 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.GP.StructureIdentification/3.3
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.GP.StructureIdentification/3.3/DefaultStructureIdentificationOperators.cs
r2385 r2454 155 155 solutionProc.AddSubOperator(namesExtractor); 156 156 solutionProc.AddSubOperator(predictorBuilder); 157 VariableQualityImpactCalculator qualityImpactCalculator = new VariableQualityImpactCalculator(); 158 qualityImpactCalculator.GetVariableInfo("SamplesStart").ActualName = "ValidationSamplesStart"; 159 qualityImpactCalculator.GetVariableInfo("SamplesEnd").ActualName = "ValidationSamplesEnd"; 160 161 solutionProc.AddSubOperator(qualityImpactCalculator); 162 163 NodeBasedVariableImpactCalculator nodeImpactCalculator = new NodeBasedVariableImpactCalculator(); 164 nodeImpactCalculator.GetVariableInfo("SamplesStart").ActualName = "ValidationSamplesStart"; 165 nodeImpactCalculator.GetVariableInfo("SamplesEnd").ActualName = "ValidationSamplesEnd"; 166 167 solutionProc.AddSubOperator(nodeImpactCalculator); 168 157 169 #endregion 158 170 … … 165 177 model.SetMetaData("TreeSize", gpModel.Size); 166 178 model.SetMetaData("TreeHeight", gpModel.Height); 179 #region variable impacts 180 ItemList qualityImpacts = bestModelScope.GetVariableValue<ItemList>(ModelingResult.VariableQualityImpact.ToString(), false); 181 foreach (ItemList row in qualityImpacts) { 182 string variableName = ((StringData)row[0]).Data; 183 double impact = ((DoubleData)row[1]).Data; 184 model.SetVariableResult(ModelingResult.VariableQualityImpact, variableName, impact); 185 model.AddInputVariable(variableName); 186 } 187 ItemList nodeImpacts = bestModelScope.GetVariableValue<ItemList>(ModelingResult.VariableNodeImpact.ToString(), false); 188 foreach (ItemList row in nodeImpacts) { 189 string variableName = ((StringData)row[0]).Data; 190 double impact = ((DoubleData)row[1]).Data; 191 model.SetVariableResult(ModelingResult.VariableNodeImpact, variableName, impact); 192 model.AddInputVariable(variableName); 193 } 194 #endregion 195 167 196 } 168 197 } -
trunk/sources/HeuristicLab.GP.StructureIdentification/3.3/HeuristicLab.GP.StructureIdentification-3.3.csproj
r2361 r2454 36 36 <DebugSymbols>true</DebugSymbols> 37 37 <OutputPath>bin\x86\Debug\</OutputPath> 38 <DefineConstants> DEBUG;TRACE</DefineConstants>38 <DefineConstants>TRACE;DEBUG</DefineConstants> 39 39 <DebugType>full</DebugType> 40 40 <PlatformTarget>x86</PlatformTarget> … … 48 48 <PlatformTarget>x86</PlatformTarget> 49 49 <ErrorReport>prompt</ErrorReport> 50 <AllowUnsafeBlocks>false</AllowUnsafeBlocks> 50 51 </PropertyGroup> 51 52 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' "> … … 85 86 <Compile Include="BaseClasses\TreeEvaluatorBase.cs" /> 86 87 <Compile Include="DefaultStructureIdentificationOperators.cs" /> 88 <Compile Include="Evaluators\NodeBasedVariableImpactCalculator.cs" /> 87 89 <Compile Include="HL3TreeEvaluatorInjector.cs" /> 88 90 <Compile Include="HL2TreeEvaluatorInjector.cs" />
Note: See TracChangeset
for help on using the changeset viewer.