Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/03/09 15:00:23 (15 years ago)
Author:
gkronber
Message:

this is the remaining part of changeset r2327.
Applied changes in modeling plugins that are necessary for the new model analyzer (#722)

  • predictor has properties for the lower and upper limit of the predicted value
  • added views for predictors that show the limits (also added a new view for GeneticProgrammingModel that shows the size and height of the model)
  • Reintroduced TreeEvaluatorInjectors that read a PunishmentFactor and calculate the lower and upper limits for estimated values (limits are set in the tree evaluators)
  • Added operators to create Predictors. Changed modeling algorithms to use the predictors for the calculation of final model qualities and variable impacts (to be compatible with the new model analyzer the predictors use a very large PunishmentFactor)
  • replaced all private implementations of double.IsAlmost and use HL.Commons instead (see #733 r2324)
  • Implemented operator SolutionExtractor and moved BestSolutionStorer from HL.Logging to HL.Modeling (fixes #734)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.GP.Boolean/3.3/BooleanTreeInterpreter.cs

    r2222 r2328  
    2727using System.Xml;
    2828using System.Diagnostics;
     29using HeuristicLab.Common;
    2930using HeuristicLab.Data;
    3031using HeuristicLab.GP.Interfaces;
     
    6768            var varNode = (VariableFunctionTree)t;
    6869            int index = dataset.GetVariableIndex(varNode.VariableName);
    69             return !IsAlmost(dataset.GetValue(currentRow, index), 0.0);
     70            return !dataset.GetValue(currentRow, index).IsAlmost(0.0);
    7071          }
    7172        case SymbolTable.UNKNOWN:
     
    7475      }
    7576    }
    76 
    77     private bool IsAlmost(double x, double y) {
    78       return Math.Abs(x - y) < EPSILON;
    79     }
    8077  }
    8178}
Note: See TracChangeset for help on using the changeset viewer.