Changeset 7011


Ignore:
Timestamp:
11/17/11 11:46:17 (8 years ago)
Author:
mkommend
Message:

#1656: Added AfterDeserializationHook to ClassificationSolutionBase to add the gini results.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification/ClassificationSolutionBase.cs

    r6961 r7011  
    7777    }
    7878
     79    [StorableHook(HookType.AfterDeserialization)]
     80    private void AfterDeserialization() {
     81      if (!this.ContainsKey(TrainingNormalizedGiniCoefficientResultName))
     82        Add(new Result(TrainingNormalizedGiniCoefficientResultName, "Normalized Gini coefficient of the model on the training partition.", new DoubleValue()));
     83      if (!this.ContainsKey(TestNormalizedGiniCoefficientResultName))
     84        Add(new Result(TestNormalizedGiniCoefficientResultName, "Normalized Gini coefficient of the model on the test partition.", new DoubleValue()));
     85    }
     86
    7987    protected void CalculateResults() {
    8088      double[] estimatedTrainingClassValues = EstimatedTrainingClassValues.ToArray(); // cache values
Note: See TracChangeset for help on using the changeset viewer.