Changeset 1786 for trunk/sources/HeuristicLab.GP.StructureIdentification
- Timestamp:
- 05/13/09 15:38:26 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/sources/HeuristicLab.GP.StructureIdentification/3.3/BakedTreeEvaluator.cs ΒΆ
r1529 r1786 56 56 public void ResetEvaluator(BakedFunctionTree functionTree, Dataset dataset, int targetVariable, int start, int end, double punishmentFactor) { 57 57 this.dataset = dataset; 58 double maximumPunishment = punishmentFactor * dataset.GetRange(targetVariable );58 double maximumPunishment = punishmentFactor * dataset.GetRange(targetVariable, start, end); 59 59 60 60 // get the mean of the values of the target variable to determine the max and min bounds of the estimated value 61 double targetMean = dataset.GetMean(targetVariable, start, end - 1);61 double targetMean = dataset.GetMean(targetVariable, start, end); 62 62 estimatedValueMin = targetMean - maximumPunishment; 63 63 estimatedValueMax = targetMean + maximumPunishment;
Note: See TracChangeset
for help on using the changeset viewer.