Changeset 9175 for branches/LearningClassifierSystems/HeuristicLab.Problems.ConditionActionClassification
- Timestamp:
- 01/21/13 16:33:47 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/LearningClassifierSystems/HeuristicLab.Problems.ConditionActionClassification/3.3/Implementation/ConditionActionClassificationProblem.cs
r9167 r9175 149 149 get { return CoveringSolutionCreatorParameter; } 150 150 } 151 private XCSSolutionAnalyzer XCSSolutionAnalyzer {152 get { return Operators.OfType<XCSSolutionAnalyzer>().FirstOrDefault(); }153 }154 151 #endregion 155 152 … … 226 223 227 224 private void InitializeOperators() { 228 Operators.Add(new XCSSolutionAnalyzer()); 225 Operators.Add(new BestTrainingXCSSolutionAnalyzer()); 226 Operators.Add(new CurrentXCSSolutionAnalyzer()); 229 227 230 228 ParameterizeAnalyzers(); … … 232 230 233 231 private void ParameterizeAnalyzers() { 234 if (XCSSolutionAnalyzer != null) {235 XCSSolutionAnalyzer.ClassifierParameter.ActualName = SolutionCreator.CombinedIntegerVectorParameter.ActualName;236 XCSSolutionAnalyzer.PredictionParameter.ActualName = Evaluator.PredictionParameter.ActualName;237 XCSSolutionAnalyzer.ErrorParameter.ActualName = Evaluator.ErrorParameter.ActualName;238 XCSSolutionAnalyzer.FitnessParameter.ActualName = Evaluator.FitnessParameter.ActualName;239 XCSSolutionAnalyzer.ExperienceParameter.ActualName = Evaluator.ExperienceParameter.ActualName;240 XCSSolutionAnalyzer.AverageActionSetSizeParameter.ActualName = Evaluator.AverageActionSetSizeParameter.ActualName;241 XCSSolutionAnalyzer.NumerosityParameter.ActualName = Evaluator.NumerosityParameter.ActualName;242 XCSSolutionAnalyzer.TimestampParameter.ActualName = Evaluator.TimestampParameter.ActualName;243 XCSSolutionAnalyzer.ProblemDataParameter.ActualName = ProblemDataParameter.Name;244 XCSSolutionAnalyzer.ResultsParameter.ActualName = "Results";232 foreach (XCSSolutionAnalyzer xcsAnalyzer in Operators.Where(x => x is XCSSolutionAnalyzer)) { 233 xcsAnalyzer.ClassifierParameter.ActualName = SolutionCreator.CombinedIntegerVectorParameter.ActualName; 234 xcsAnalyzer.PredictionParameter.ActualName = Evaluator.PredictionParameter.ActualName; 235 xcsAnalyzer.ErrorParameter.ActualName = Evaluator.ErrorParameter.ActualName; 236 xcsAnalyzer.FitnessParameter.ActualName = Evaluator.FitnessParameter.ActualName; 237 xcsAnalyzer.ExperienceParameter.ActualName = Evaluator.ExperienceParameter.ActualName; 238 xcsAnalyzer.AverageActionSetSizeParameter.ActualName = Evaluator.AverageActionSetSizeParameter.ActualName; 239 xcsAnalyzer.NumerosityParameter.ActualName = Evaluator.NumerosityParameter.ActualName; 240 xcsAnalyzer.TimestampParameter.ActualName = Evaluator.TimestampParameter.ActualName; 241 xcsAnalyzer.ProblemDataParameter.ActualName = ProblemDataParameter.Name; 242 xcsAnalyzer.ResultsParameter.ActualName = "Results"; 245 243 } 246 244 }
Note: See TracChangeset
for help on using the changeset viewer.