Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/08/13 14:12:00 (12 years ago)
Author:
sforsten
Message:

#1980:

  • added ProportionalTournamentSelector for XCS
  • fixed bug: if an initial population is created in XCS, the initial population also creates general classifier, not only specific ones
  • merged r9204:9466 HeuristicLab.Core from trunk to branch
Location:
branches/LearningClassifierSystems
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/LearningClassifierSystems

  • branches/LearningClassifierSystems/HeuristicLab.Problems.ConditionActionClassification/3.3/ConditionActionClassificationProblem.cs

    r9411 r9467  
    2929using HeuristicLab.Parameters;
    3030using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     31using HeuristicLab.PluginInfrastructure;
    3132using HeuristicLab.Problems.DataAnalysis;
    3233using HeuristicLab.Problems.Instances;
     
    4243    private const string ActionExecuterParameterName = "ActionExecuter";
    4344    private const string ActionSetSubsumptionOperatorParameterName = "ActionSetSubsumption";
     45    private const string MaximizationParameterName = "Maximization";
    4446
    4547    public abstract string ChildName { get; }
     48
     49    public IFixedValueParameter<BoolValue> MaximizationParameter {
     50      get { return (IFixedValueParameter<BoolValue>)Parameters[MaximizationParameterName]; }
     51    }
     52    IParameter IConditionActionProblem.MaximizationParameter {
     53      get { return MaximizationParameter; }
     54    }
    4655
    4756    IXCSEvaluator IConditionActionProblem.Evaluator {
     
    149158    public ConditionActionClassificationProblem(V problemData, XCSEvaluator evaluator, T solutionCreator, ICoveringSolutionCreator coveringSolutionCreator)
    150159      : base(evaluator, solutionCreator) {
     160      Parameters.Add(new FixedValueParameter<BoolValue>(MaximizationParameterName, "Set to false if the problem should be minimized.", new BoolValue((true))));
    151161      Parameters.Add(new ValueParameter<V>("ProblemData", "", problemData));
    152162      Parameters.Add(new FixedValueParameter<DoubleValue>("PositiveReward", "", new DoubleValue(1000)));
     
    207217      Operators.Add(new BestTrainingXCSSolutionAnalyzer());
    208218      Operators.Add(new CurrentXCSSolutionAnalyzer());
     219      Operators.AddRange(ApplicationManager.Manager.GetInstances<ISingleObjectiveSelector>().Where(x => !(x is IMultiObjectiveSelector)).OrderBy(x => x.Name));
    209220    }
    210221
Note: See TracChangeset for help on using the changeset viewer.