Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/20/10 17:42:27 (14 years ago)
Author:
gkronber
Message:

Worked on overfitting analyzer and CPP. #1142

File:
1 edited

Legend:

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

    r4271 r4272  
    8989    public ILookupParameter<DataTable> QualitiesParameter {
    9090      get { return (ILookupParameter<DataTable>)Parameters["Qualities"]; }
     91    }
     92    public IValueLookupParameter<DoubleValue> MinAverageSizeParameter {
     93      get { return (IValueLookupParameter<DoubleValue>)Parameters["MinAverageSize"]; }
    9194    }
    9295
     
    111114      Parameters.Add(new LookupParameter<DoubleValue>("Correlation(Length, AdjustedFitness)"));
    112115      Parameters.Add(new LookupParameter<DoubleValue>("Correlation(Fitness, AdjustedFitness)"));
     116      Parameters.Add(new ValueLookupParameter<DoubleValue>("MinAverageSize", new DoubleValue(15)));
    113117    }
    114118
     
    151155      if (!Parameters.ContainsKey("ComplexityAdaption")) {
    152156        Parameters.Add(new ValueLookupParameter<PercentValue>("ComplexityAdaption", new PercentValue(-5)));
     157      }
     158      if (!Parameters.ContainsKey("MinAverageSize")) {
     159        Parameters.Add(new ValueLookupParameter<DoubleValue>("MinAverageSize", new DoubleValue(15)));
    153160      }
    154161    }
     
    190197        else sizeAdaption = Math.Ceiling(sizeAdaption);
    191198        double g = lengthMeanCalculator.Mean + sizeAdaption;
     199        if (g < MinAverageSizeParameter.ActualValue.Value)
     200          g = MinAverageSizeParameter.ActualValue.Value;
    192201
    193202        //            cov(l, f) - (g(t+1) - mu(t)) avgF
Note: See TracChangeset for help on using the changeset viewer.