Changeset 2683 for trunk/sources/HeuristicLab.GP.StructureIdentification
- Timestamp:
- 01/25/10 15:26:00 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.GP.StructureIdentification/3.3
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.GP.StructureIdentification/3.3/DefaultStructureIdentificationOperators.cs
r2632 r2683 30 30 using System.Collections.Generic; 31 31 using System; 32 using HeuristicLab.GP.Operators; 32 33 33 34 namespace HeuristicLab.GP.StructureIdentification { … … 60 61 CombinedOperator op = new CombinedOperator(); 61 62 SequentialProcessor seq = new SequentialProcessor(); 63 64 SymbolFrequencyAnalyser symbolFrequencyAnalyser = new SymbolFrequencyAnalyser(); 65 seq.AddSubOperator(symbolFrequencyAnalyser); 66 67 VariableFrequencyAnalyser varFrequencyAnalyser = new VariableFrequencyAnalyser(); 68 seq.AddSubOperator(varFrequencyAnalyser); 69 62 70 UniformSequentialSubScopesProcessor subScopesProc = new UniformSequentialSubScopesProcessor(); 63 71 SequentialProcessor individualProc = new SequentialProcessor(); … … 170 178 solutionProc.AddSubOperator(nodeImpactCalculator); 171 179 180 VariableFrequencyBasedImpactCalculator frequencyImpactCalculator = new VariableFrequencyBasedImpactCalculator(); 181 solutionProc.AddSubOperator(frequencyImpactCalculator); 182 172 183 #endregion 173 184 … … 198 209 model.AddInputVariable(variableName); 199 210 } 211 ItemList frequencyImpacts = bestModelScope.GetVariableValue<ItemList>(ModelingResult.RelativeFrequencyVariableImpact.ToString(), false); 212 foreach (ItemList row in frequencyImpacts) { 213 string variableName = ((StringData)row[0]).Data; 214 double impact = ((DoubleData)row[1]).Data; 215 model.SetVariableResult(ModelingResult.RelativeFrequencyVariableImpact, variableName, impact); 216 model.AddInputVariable(variableName); 217 } 218 200 219 #endregion 201 220
Note: See TracChangeset
for help on using the changeset viewer.