Ignore:
Timestamp:
01/03/13 20:19:00 (6 years ago)
Author:
sforsten
Message:

#1980:

  • included an adapted version of GA correctly
  • added action set subsumption
  • added deletion after GA and before covering
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/LearningClassifierSystems/HeuristicLab.Problems.ConditionActionClassification/3.3/Implementation/ConditionActionClassificationProblem.cs

    r9090 r9105  
    3636    private const string ClassifierFetcherParameterName = "ClassifierFetcher";
    3737    private const string ActionExecuterParameterName = "ActionExecuter";
     38    private const string ActionSetSubsumptionOperatorParameterName = "ActionSetSubsumption";
    3839
    3940    IXCSEvaluator IConditionActionProblem.Evaluator {
     
    118119    IClassifierFetcher IConditionActionProblem.ClassifierFetcher { get { return ClassifierFetcher; } }
    119120    IParameter IConditionActionProblem.ClassifierFetcherParameter { get { return ClassifierFetcherParameter; } }
     121
     122
     123    public ActionSetSubsumptionoperator ActionSetSubsumptionOperator {
     124      get { return ActionSetSubsumptionOperatorParameter.Value; }
     125    }
     126    public ValueParameter<ActionSetSubsumptionoperator> ActionSetSubsumptionOperatorParameter {
     127      get { return (ValueParameter<ActionSetSubsumptionoperator>)Parameters[ActionSetSubsumptionOperatorParameterName]; }
     128    }
     129    IActionSetSubsumption IConditionActionProblem.ActionSetSubsumptionOperator { get { return ActionSetSubsumptionOperator; } }
     130    IParameter IConditionActionProblem.ActionSetSubsumptionOperatorParameter { get { return ActionSetSubsumptionOperatorParameter; } }
    120131
    121132    private IntValue ThetaMinimalNumberOfActions {
     
    164175      Parameters.Add(new ValueParameter<CombinedIntegerVectorClassifierFetcher>(ClassifierFetcherParameterName, "", new CombinedIntegerVectorClassifierFetcher()));
    165176      Parameters.Add(new FixedValueParameter<ItemSet<IClassifier>>("PossibleActions"));
    166       Parameters.Add(new FixedValueParameter<IntValue>("ThetaMinimalNumberOfActions", "Minimal number of actions, which have to be present in the match set, or else covering will occure."));
     177      Parameters.Add(new FixedValueParameter<IntValue>("ThetaMinimalNumberOfActions", "Minimal number of actions, which have to be present in the match set, or else covering will occure.", new IntValue(1)));
    167178
    168179      Parameters.Add(new ValueParameter<ICoveringSolutionCreator>("CoveringSolutionCreator", "", coveringSolutionCreator));
    169180      Parameters.Add(new FixedValueParameter<PercentValue>("ChangeSymbolProbabilityInCovering", "", new PercentValue(0.5)));
     181
     182      Parameters.Add(new ValueParameter<ActionSetSubsumptionoperator>(ActionSetSubsumptionOperatorParameterName, "", new ActionSetSubsumptionoperator()));
    170183
    171184      Evaluator.InitialErrorParameter.ActualName = "InitialError";
     
    188201      ActionExecuter.NegativeRewardParameter.ActualName = NegativeRewardParameter.Name;
    189202      ActionExecuter.PositiveRewardParameter.ActualName = PositiveRewardParameter.Name;
     203
     204      ActionSetSubsumptionOperator.ClassifiersParameter.ActualName = "CombinedIntegerVector";
    190205
    191206      SetPossibleActions();
Note: See TracChangeset for help on using the changeset viewer.