Free cookie consent management tool by TermsFeed Policy Generator

Changeset 14585 for branches


Ignore:
Timestamp:
01/18/17 16:59:47 (8 years ago)
Author:
bburlacu
Message:

#2635: Limit estimated values to range by default.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.OSGAEvaluator/HeuristicLab.OSGAEvaluator/SymbolicRegressionSingleObjectiveOSGAEvaluator.cs

    r14584 r14585  
    212212
    213213    private double Calculate(ISymbolicDataAnalysisExpressionTreeInterpreter interpreter, ISymbolicExpressionTree solution, DoubleLimit estimationLimits, IRegressionProblemData problemData, IEnumerable<int> rows) {
    214       var estimatedValues = interpreter.GetSymbolicExpressionTreeValues(solution, problemData.Dataset, rows);
     214      var lowerEstimationLimit = EstimationLimitsParameter.ActualValue.Lower;
     215      var upperEstimationLimit = EstimationLimitsParameter.ActualValue.Upper;
     216      var estimatedValues = interpreter.GetSymbolicExpressionTreeValues(solution, problemData.Dataset, rows).LimitToRange(lowerEstimationLimit, upperEstimationLimit);
    215217      var targetValues = problemData.Dataset.GetDoubleValues(problemData.TargetVariable, rows).ToList();
    216218      var parentQualities = ParentQualitiesParameter.ActualValue.Select(x => x.Value);
     
    234236            threshold = parentQuality * (1 - actualSelectionPressure.Value / 100.0);
    235237        }
     238
    236239        var estimatedEnumerator = estimatedValues.GetEnumerator();
    237240        var targetEnumerator = targetValues.GetEnumerator();
Note: See TracChangeset for help on using the changeset viewer.