Changeset 2356 for trunk/sources/HeuristicLab.GP.StructureIdentification/3.3/OffspringSelectionGP.cs
- Timestamp:
- 09/15/09 14:01:47 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.GP.StructureIdentification/3.3/OffspringSelectionGP.cs
r2344 r2356 77 77 78 78 protected override IOperator CreateFunctionLibraryInjector() { 79 return DefaultStructureIdentification AlgorithmOperators.CreateFunctionLibraryInjector();79 return DefaultStructureIdentificationOperators.CreateFunctionLibraryInjector(); 80 80 } 81 81 82 82 protected override IOperator CreateProblemInjector() { 83 return Default StructureIdentificationAlgorithmOperators.CreateProblemInjector();83 return DefaultRegressionOperators.CreateProblemInjector(); 84 84 } 85 85 86 86 protected override IOperator CreateInitialPopulationEvaluator() { 87 return DefaultStructureIdentification AlgorithmOperators.CreateInitialPopulationEvaluator();87 return DefaultStructureIdentificationOperators.CreateInitialPopulationEvaluator(); 88 88 } 89 89 90 90 protected override IOperator CreateEvaluationOperator() { 91 return DefaultStructureIdentification AlgorithmOperators.CreateEvaluator();91 return DefaultStructureIdentificationOperators.CreateEvaluator(); 92 92 } 93 93 94 94 95 95 protected override IOperator CreateGenerationStepHook() { 96 return DefaultStructureIdentification AlgorithmOperators.CreateGenerationStepHook();96 return DefaultStructureIdentificationOperators.CreateGenerationStepHook(); 97 97 } 98 98 … … 133 133 134 134 protected override IOperator CreatePostProcessingOperator() { 135 return DefaultStructureIdentificationAlgorithmOperators.CreatePostProcessingOperator(); 135 CombinedOperator op = new CombinedOperator(); 136 op.Name = "ModelAnalyser"; 137 SequentialProcessor seq = new SequentialProcessor(); 138 seq.AddSubOperator(DefaultStructureIdentificationOperators.CreatePreparationForPostProcessingOperator()); 139 140 UniformSequentialSubScopesProcessor subScopesProc = new UniformSequentialSubScopesProcessor(); 141 SequentialProcessor solutionProc = new SequentialProcessor(); 142 solutionProc.AddSubOperator(CreateModelAnalyzerOperator()); 143 144 subScopesProc.AddSubOperator(solutionProc); 145 seq.AddSubOperator(subScopesProc); 146 147 op.OperatorGraph.AddOperator(seq); 148 op.OperatorGraph.InitialOperator = seq; 149 return op; 150 } 151 152 protected virtual IOperator CreateModelAnalyzerOperator() { 153 return DefaultRegressionOperators.CreatePostProcessingOperator(); 136 154 } 137 155 … … 148 166 protected virtual IAnalyzerModel CreateGPModel() { 149 167 IScope bestModelScope = Engine.GlobalScope.SubScopes[0]; 150 IAnalyzerModel model = DefaultStructureIdentificationAlgorithmOperators.CreateGPModel(bestModelScope); 151 model.SetMetaData("SelectionPressure", bestModelScope.GetVariableValue<DoubleData>("SelectionPressure", true).Data); 168 var model = new AnalyzerModel(); 169 170 model.SetMetaData("SelectionPressure", bestModelScope.GetVariableValue<DoubleData>("SelectionPressure", false).Data); 171 DefaultStructureIdentificationOperators.PopulateAnalyzerModel(bestModelScope, model); 172 DefaultRegressionOperators.PopulateAnalyzerModel(bestModelScope, model); 173 152 174 return model; 153 175 }
Note: See TracChangeset
for help on using the changeset viewer.