Free cookie consent management tool by TermsFeed Policy Generator

Changeset 10305


Ignore:
Timestamp:
01/08/14 14:43:01 (11 years ago)
Author:
gkronber
Message:

#2093: changed log residual evaluator to calculate avg(log( 1 + abs(y - pred)))

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/LogResidualEvaluator/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SingleObjective/Evaluators/SymbolicRegressionLogResidualEvaluator.cs

    r10203 r10305  
    3030
    3131namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Regression {
    32   [Item("Log Residual Evaluator", "Evaluator for symbolic regression models that calculates the mean of logarithmic absolute residuals avg(log(abs(y' - y)))." +
     32  [Item("Log Residual Evaluator", "Evaluator for symbolic regression models that calculates the mean of logarithmic absolute residuals avg(log( 1 + abs(y' - y)))." +
    3333                                  "This evaluator can be useful if the modeled function contains discontinuities (e.g. 1/x). " +
    3434                                  "In preliminary experiments, we found that this improves success rates for data sets with a few very large/small target values " +
     
    6868      IEnumerable<double> boundedEstimatedValues = estimatedValues.LimitToRange(lowerEstimationLimit, upperEstimationLimit);
    6969
    70       var logRes = boundedEstimatedValues.Zip(targetValues, (e, t) => Math.Log(Math.Abs(e - t)));
     70      var logRes = boundedEstimatedValues.Zip(targetValues, (e, t) => Math.Log(1.0 + Math.Abs(e - t)));
    7171
    7272      OnlineCalculatorError errorState;
Note: See TracChangeset for help on using the changeset viewer.