Changeset 9110 for branches/LearningClassifierSystems/HeuristicLab.Problems.ConditionActionClassification/3.3
- Timestamp:
- 01/04/13 20:46:18 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/LearningClassifierSystems/HeuristicLab.Problems.ConditionActionClassification/3.3/Implementation/ConditionActionClassificationProblem.cs
r9105 r9110 70 70 get { return (IFixedValueParameter<ItemSet<IClassifier>>)Parameters["PossibleActions"]; } 71 71 } 72 public IFixedValueParameter<ItemSet<CombinedIntegerVector>> PossibleActionsConcreteClassParameter { 73 get { return (IFixedValueParameter<ItemSet<CombinedIntegerVector>>)Parameters["PossibleActionsConcreteClass"]; } 74 } 72 75 public IFixedValueParameter<IntValue> ThetaMinimalNumberOfActionsParameter { 73 76 get { return (IFixedValueParameter<IntValue>)Parameters["ThetaMinimalNumberOfActions"]; } … … 95 98 get { return ProblemDataParameter.Value; } 96 99 } 100 IParameter IConditionActionProblem.PossibleActionsConcreteClassParameter { 101 get { return PossibleActionsConcreteClassParameter; } 102 } 103 public ItemSet<CombinedIntegerVector> PossibleActionsConcreteClass { 104 get { return PossibleActionsConcreteClassParameter.Value; } 105 } 97 106 IParameter IConditionActionProblem.PossibleActionsParameter { 98 107 get { return PossibleActionsParameter; } 99 108 } 100 IItemSet<IClassifier> IConditionActionProblem.PossibleActions {101 get { return PossibleActions; }102 }109 //IItemSet<IClassifier> IConditionActionProblem.PossibleActions { 110 // get { return PossibleActions; } 111 //} 103 112 public ItemSet<IClassifier> PossibleActions { 104 113 get { return PossibleActionsParameter.Value; } … … 121 130 122 131 123 public ActionSetSubsumption operator ActionSetSubsumptionOperator {132 public ActionSetSubsumptionOperator ActionSetSubsumptionOperator { 124 133 get { return ActionSetSubsumptionOperatorParameter.Value; } 125 134 } 126 public ValueParameter<ActionSetSubsumption operator> ActionSetSubsumptionOperatorParameter {127 get { return (ValueParameter<ActionSetSubsumption operator>)Parameters[ActionSetSubsumptionOperatorParameterName]; }135 public ValueParameter<ActionSetSubsumptionOperator> ActionSetSubsumptionOperatorParameter { 136 get { return (ValueParameter<ActionSetSubsumptionOperator>)Parameters[ActionSetSubsumptionOperatorParameterName]; } 128 137 } 129 138 IActionSetSubsumption IConditionActionProblem.ActionSetSubsumptionOperator { get { return ActionSetSubsumptionOperator; } } … … 175 184 Parameters.Add(new ValueParameter<CombinedIntegerVectorClassifierFetcher>(ClassifierFetcherParameterName, "", new CombinedIntegerVectorClassifierFetcher())); 176 185 Parameters.Add(new FixedValueParameter<ItemSet<IClassifier>>("PossibleActions")); 186 Parameters.Add(new FixedValueParameter<ItemSet<CombinedIntegerVector>>("PossibleActionsConcreteClass")); 177 187 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))); 178 188 … … 180 190 Parameters.Add(new FixedValueParameter<PercentValue>("ChangeSymbolProbabilityInCovering", "", new PercentValue(0.5))); 181 191 182 Parameters.Add(new ValueParameter<ActionSetSubsumption operator>(ActionSetSubsumptionOperatorParameterName, "", new ActionSetSubsumptionoperator()));192 Parameters.Add(new ValueParameter<ActionSetSubsumptionOperator>(ActionSetSubsumptionOperatorParameterName, "", new ActionSetSubsumptionOperator())); 183 193 184 194 Evaluator.InitialErrorParameter.ActualName = "InitialError"; … … 237 247 } 238 248 PossibleActions.Clear(); 249 PossibleActionsConcreteClass.Clear(); 239 250 while (!done) { 240 251 PossibleActions.Add(new CombinedIntegerVector(curPos, actionLength, actionBounds)); 252 PossibleActionsConcreteClass.Add(new CombinedIntegerVector(curPos, actionLength, actionBounds)); 241 253 curPos = GetNextAction(curPos, actionBounds, out done); 242 254 }
Note: See TracChangeset
for help on using the changeset viewer.