Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/11/10 12:59:53 (14 years ago)
Author:
gkronber
Message:

Created a feature/exploration branch for new data analysis features #1142

Location:
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis/3.3/Operators/WeightedParentsQualityVarianceComparator.cs

    r4131 r4193  
    125125
    126126      bool result = false;
    127       if (maximization)
    128         result = righttail < ConfidenceIntervalParameter.ActualValue.Value;
    129       else
    130         result = lefttail < ConfidenceIntervalParameter.ActualValue.Value;
     127      // reject only if the child is significantly worse
     128      if (maximization) {
     129        if (bothtails > ConfidenceIntervalParameter.ActualValue.Value) result = true;
     130        else if (leftQuality > bestParentQuality) result = true;
     131        else result = false;
     132      } else {
     133        if (bothtails > ConfidenceIntervalParameter.ActualValue.Value) result = true;
     134        else if (leftQuality < bestParentQuality) result = true;
     135        else result = false;
     136      }
    131137
    132138      BoolValue resultValue = ResultParameter.ActualValue;
     
    136142        resultValue.Value = result;
    137143      }
    138 
    139 
    140 
    141144      return base.Apply();
    142145    }
Note: See TracChangeset for help on using the changeset viewer.