Changeset 9494 for branches/LearningClassifierSystems/HeuristicLab.Encodings.ConditionActionEncoding
- Timestamp:
- 05/14/13 16:54:01 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/LearningClassifierSystems/HeuristicLab.Encodings.ConditionActionEncoding/3.3/XCSSolution.cs
r9194 r9494 37 37 private const string TrainingAccuracyResultName = "Accuracy (training)"; 38 38 private const string TestAccuracyResultName = "Accuracy (test)"; 39 private const string NumberOfMacroClassifiersName = "Number of Macroclassifiers"; 39 40 40 41 public string Filename { get; set; } … … 47 48 get { return ((DoubleValue)this[TestAccuracyResultName].Value).Value; } 48 49 private set { ((DoubleValue)this[TestAccuracyResultName].Value).Value = value; } 50 } 51 public int NumberOfMacroClassifiers { 52 get { return ((IntValue)this[NumberOfMacroClassifiersName].Value).Value; } 53 private set { ((IntValue)this[NumberOfMacroClassifiersName].Value).Value = value; } 49 54 } 50 55 … … 97 102 Add(new Result(TrainingAccuracyResultName, "Accuracy of the model on the training partition (percentage of correctly classified instances).", new PercentValue())); 98 103 Add(new Result(TestAccuracyResultName, "Accuracy of the model on the test partition (percentage of correctly classified instances).", new PercentValue())); 104 Add(new Result(NumberOfMacroClassifiersName, new IntValue(model.ClassifierCount))); 99 105 100 106 problemData.Changed += new EventHandler(ProblemData_Changed); … … 104 110 105 111 private void RecalculateResults() { 112 NumberOfMacroClassifiers = Model.ClassifierCount; 106 113 var originalTrainingCondition = ProblemData.FetchInput(ProblemData.TrainingIndices); 107 114 var originalTestCondition = ProblemData.FetchInput(ProblemData.TestIndices);
Note: See TracChangeset
for help on using the changeset viewer.