Changeset 9105 for branches/LearningClassifierSystems/HeuristicLab.Problems.ConditionActionClassification/3.3/Implementation/ConditionActionClassificationProblem.cs
- Timestamp:
- 01/03/13 20:19:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/LearningClassifierSystems/HeuristicLab.Problems.ConditionActionClassification/3.3/Implementation/ConditionActionClassificationProblem.cs
r9090 r9105 36 36 private const string ClassifierFetcherParameterName = "ClassifierFetcher"; 37 37 private const string ActionExecuterParameterName = "ActionExecuter"; 38 private const string ActionSetSubsumptionOperatorParameterName = "ActionSetSubsumption"; 38 39 39 40 IXCSEvaluator IConditionActionProblem.Evaluator { … … 118 119 IClassifierFetcher IConditionActionProblem.ClassifierFetcher { get { return ClassifierFetcher; } } 119 120 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; } } 120 131 121 132 private IntValue ThetaMinimalNumberOfActions { … … 164 175 Parameters.Add(new ValueParameter<CombinedIntegerVectorClassifierFetcher>(ClassifierFetcherParameterName, "", new CombinedIntegerVectorClassifierFetcher())); 165 176 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))); 167 178 168 179 Parameters.Add(new ValueParameter<ICoveringSolutionCreator>("CoveringSolutionCreator", "", coveringSolutionCreator)); 169 180 Parameters.Add(new FixedValueParameter<PercentValue>("ChangeSymbolProbabilityInCovering", "", new PercentValue(0.5))); 181 182 Parameters.Add(new ValueParameter<ActionSetSubsumptionoperator>(ActionSetSubsumptionOperatorParameterName, "", new ActionSetSubsumptionoperator())); 170 183 171 184 Evaluator.InitialErrorParameter.ActualName = "InitialError"; … … 188 201 ActionExecuter.NegativeRewardParameter.ActualName = NegativeRewardParameter.Name; 189 202 ActionExecuter.PositiveRewardParameter.ActualName = PositiveRewardParameter.Name; 203 204 ActionSetSubsumptionOperator.ClassifiersParameter.ActualName = "CombinedIntegerVector"; 190 205 191 206 SetPossibleActions();
Note: See TracChangeset
for help on using the changeset viewer.