Changeset 9204 for branches/LearningClassifierSystems/HeuristicLab.Problems.ConditionActionClassification
- Timestamp:
- 02/04/13 16:16:38 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/LearningClassifierSystems/HeuristicLab.Problems.ConditionActionClassification/3.3/Implementation/ConditionActionClassificationProblem.cs
r9194 r9204 20 20 #endregion 21 21 22 using System.Collections.Generic; 22 23 using System.Linq; 23 24 using HeuristicLab.Common; … … 29 30 using HeuristicLab.Parameters; 30 31 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 32 using HeuristicLab.PluginInfrastructure; 31 33 using HeuristicLab.Problems.DataAnalysis; 32 34 using HeuristicLab.Problems.Instances; … … 233 235 234 236 private void InitializeOperators() { 237 Operators.AddRange(ApplicationManager.Manager.GetInstances<ICombinedIntegerVectorCrossover>()); 238 Operators.AddRange(AddManipulators()); 235 239 Operators.Add(new BestTrainingXCSSolutionAnalyzer()); 236 240 Operators.Add(new CurrentXCSSolutionAnalyzer()); 237 241 238 ParameterizeAnalyzers(); 239 } 240 241 private void ParameterizeAnalyzers() { 242 foreach (XCSSolutionAnalyzer xcsAnalyzer in Operators.Where(x => x is XCSSolutionAnalyzer)) { 242 ParameterizeOperators(); 243 } 244 245 private IEnumerable<ICombinedIntegerVectorManipulator> AddManipulators() { 246 var manipulator = new UniformSomePositionManipulator(); 247 manipulator.ChildParameter.ActualName = "CombinedIntegerVector"; 248 manipulator.FetchedInputParameter.ActualName = ClassifierFetcher.CurrentInputToMatchParameter.ActualName; 249 manipulator.PossibleActionsParameter.ActualName = PossibleActionsConcreteClassParameter.Name; 250 return new List<ICombinedIntegerVectorManipulator>() { manipulator }; 251 } 252 253 private void ParameterizeOperators() { 254 foreach (XCSSolutionAnalyzer xcsAnalyzer in Operators.OfType<XCSSolutionAnalyzer>()) { 243 255 xcsAnalyzer.ClassifierParameter.ActualName = SolutionCreator.CombinedIntegerVectorParameter.ActualName; 244 256 xcsAnalyzer.PredictionParameter.ActualName = Evaluator.PredictionParameter.ActualName;
Note: See TracChangeset
for help on using the changeset viewer.