Changeset 6754 for trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/MultiObjective
- Timestamp:
- 09/13/11 17:01:47 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/MultiObjective/SymbolicRegressionMultiObjectiveProblem.cs
r6740 r6754 77 77 78 78 private void UpdateEstimationLimits() { 79 if (ProblemData.Training Partition.Start < ProblemData.TrainingPartition.End) {79 if (ProblemData.TrainingIndizes.Any()) { 80 80 var targetValues = ProblemData.Dataset.GetDoubleValues(ProblemData.TargetVariable, ProblemData.TrainingIndizes).ToList(); 81 81 var mean = targetValues.Average(); … … 83 83 EstimationLimits.Upper = mean + PunishmentFactor * range; 84 84 EstimationLimits.Lower = mean - PunishmentFactor * range; 85 } else { 86 EstimationLimits.Upper = double.MaxValue; 87 EstimationLimits.Lower = double.MinValue; 85 88 } 86 89 }
Note: See TracChangeset
for help on using the changeset viewer.