Changeset 9392 for branches/LearningClassifierSystems/HeuristicLab.Problems.ConditionActionClassification/3.3
- Timestamp:
- 04/23/13 13:31:29 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/LearningClassifierSystems/HeuristicLab.Problems.ConditionActionClassification/3.3/ConditionActionClassificationProblemData.cs
r9352 r9392 126 126 if (allowedConditionVariables == null) throw new ArgumentNullException("The allowedActionVariables must not be null."); 127 127 128 if (allowedActionVariables.Except(dataset.DoubleVariables).Any()) 129 throw new ArgumentException("All allowed action variables must be present in the dataset and of type double."); 130 if (allowedConditionVariables.Except(dataset.DoubleVariables).Any()) 131 throw new ArgumentException("All allowed condition variables must be present in the dataset and of type double."); 132 133 var actionVariables = new CheckedItemList<StringValue>(dataset.DoubleVariables.Select(x => new StringValue(x))); 128 var actionVariables = new CheckedItemList<StringValue>(dataset.VariableNames.Select(x => new StringValue(x))); 134 129 var conditionVariables = new CheckedItemList<StringValue>(actionVariables); 135 130 foreach (StringValue x in actionVariables) {
Note: See TracChangeset
for help on using the changeset viewer.