Free cookie consent management tool by TermsFeed Policy Generator

Changeset 2561


Ignore:
Timestamp:
12/17/09 12:57:20 (15 years ago)
Author:
gkronber
Message:

Fixed #817 (LR algorithm doesn't store tree size and tree height metadata in results)

File:
1 edited

Legend:

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

    r2454 r2561  
    238238    protected virtual IAnalyzerModel CreateLRModel(IScope bestModelScope) {
    239239      var model = new AnalyzerModel();
     240      IGeneticProgrammingModel gpModel = bestModelScope.GetVariableValue<IGeneticProgrammingModel>("LinearRegressionModel", false);
     241      model.SetMetaData("TreeSize", gpModel.Size);
     242      model.SetMetaData("TreeHeight", gpModel.Height);
    240243      CreateSpecificLRModel(bestModelScope, model);
    241244      #region variable impacts
Note: See TracChangeset for help on using the changeset viewer.