Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/14/13 16:54:01 (12 years ago)
Author:
sforsten
Message:

#1980:

  • renamed algorithm Learning Classifier System to XCS
  • DecisionListSolution and XCSSolution show more information
  • VariableVectorClassificationProblemData can now also import datasets where the last variable is not the target variable
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/LearningClassifierSystems/HeuristicLab.Encodings.ConditionActionEncoding/3.3/XCSSolution.cs

    r9194 r9494  
    3737    private const string TrainingAccuracyResultName = "Accuracy (training)";
    3838    private const string TestAccuracyResultName = "Accuracy (test)";
     39    private const string NumberOfMacroClassifiersName = "Number of Macroclassifiers";
    3940
    4041    public string Filename { get; set; }
     
    4748      get { return ((DoubleValue)this[TestAccuracyResultName].Value).Value; }
    4849      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; }
    4954    }
    5055
     
    97102      Add(new Result(TrainingAccuracyResultName, "Accuracy of the model on the training partition (percentage of correctly classified instances).", new PercentValue()));
    98103      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)));
    99105
    100106      problemData.Changed += new EventHandler(ProblemData_Changed);
     
    104110
    105111    private void RecalculateResults() {
     112      NumberOfMacroClassifiers = Model.ClassifierCount;
    106113      var originalTrainingCondition = ProblemData.FetchInput(ProblemData.TrainingIndices);
    107114      var originalTestCondition = ProblemData.FetchInput(ProblemData.TestIndices);
Note: See TracChangeset for help on using the changeset viewer.