Free cookie consent management tool by TermsFeed Policy Generator

Changeset 2569 for trunk


Ignore:
Timestamp:
12/21/09 17:16:34 (15 years ago)
Author:
gkronber
Message:

Added calculation of tree complexity to LR models. #821

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.LinearRegression/3.2/LinearRegression.cs

    r2561 r2569  
    241241      model.SetMetaData("TreeSize", gpModel.Size);
    242242      model.SetMetaData("TreeHeight", gpModel.Height);
     243      double treeComplexity = TreeComplexityEvaluator.Calculate(gpModel.FunctionTree);
     244      model.SetMetaData("TreeComplexity", treeComplexity);
     245      model.SetMetaData("AverageNodeComplexity", treeComplexity / gpModel.Size);
     246
    243247      CreateSpecificLRModel(bestModelScope, model);
    244248      #region variable impacts
Note: See TracChangeset for help on using the changeset viewer.