Free cookie consent management tool by TermsFeed Policy Generator

Changeset 2568


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

Implemented #821 (Additional model meta data field that stores number of different function symbols that appear in a symbolic regression model)

Location:
trunk/sources/HeuristicLab.GP.StructureIdentification/3.3
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.GP.StructureIdentification/3.3/DefaultStructureIdentificationOperators.cs

    r2566 r2568  
    2828using HeuristicLab.Selection;
    2929using HeuristicLab.Data;
     30using System.Collections.Generic;
     31using System;
    3032
    3133namespace HeuristicLab.GP.StructureIdentification {
     
    177179      model.SetMetaData("TreeSize", gpModel.Size);
    178180      model.SetMetaData("TreeHeight", gpModel.Height);
     181      double treeComplexity = TreeComplexityEvaluator.Calculate(gpModel.FunctionTree);
     182      model.SetMetaData("TreeComplexity", treeComplexity);
     183      model.SetMetaData("AverageNodeComplexity", treeComplexity / gpModel.Size);
    179184      #region variable impacts
    180185      ItemList qualityImpacts = bestModelScope.GetVariableValue<ItemList>(ModelingResult.VariableQualityImpact.ToString(), false);
     
    195200
    196201    }
     202
    197203  }
    198204}
  • trunk/sources/HeuristicLab.GP.StructureIdentification/3.3/HeuristicLab.GP.StructureIdentification-3.3.csproj

    r2566 r2568  
    8585    <Compile Include="BaseClasses\FunctionTreeBase.cs" />
    8686    <Compile Include="BaseClasses\TreeEvaluatorBase.cs" />
     87    <Compile Include="Evaluators\TreeComplexityEvaluator.cs" />
    8788    <Compile Include="FunctionLibraryInjectors\ArithmeticFunctionLibraryInjector.cs" />
    8889    <Compile Include="FunctionLibraryInjectors\SymbolicRegressionFunctionLibraryInjectorAttribute.cs" />
Note: See TracChangeset for help on using the changeset viewer.