Changeset 6754
- Timestamp:
- 09/13/11 17:01:47 (13 years ago)
- Location:
- trunk/sources
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/MultiObjective/SymbolicClassificationMultiObjectiveProblem.cs
r6740 r6754 73 73 74 74 private void UpdateEstimationLimits() { 75 if (ProblemData.Training Partition.Start < ProblemData.TrainingPartition.End) {75 if (ProblemData.TrainingIndizes.Any()) { 76 76 var targetValues = ProblemData.Dataset.GetDoubleValues(ProblemData.TargetVariable, ProblemData.TrainingIndizes).ToList(); 77 77 var mean = targetValues.Average(); … … 79 79 EstimationLimits.Upper = mean + PunishmentFactor * range; 80 80 EstimationLimits.Lower = mean - PunishmentFactor * range; 81 } else { 82 EstimationLimits.Upper = double.MaxValue; 83 EstimationLimits.Lower = double.MinValue; 81 84 } 82 85 } -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/SingleObjective/SymbolicClassificationSingleObjectiveProblem.cs
r6740 r6754 72 72 73 73 private void UpdateEstimationLimits() { 74 if (ProblemData.Training Partition.Start < ProblemData.TrainingPartition.End) {74 if (ProblemData.TrainingIndizes.Any()) { 75 75 var targetValues = ProblemData.Dataset.GetDoubleValues(ProblemData.TargetVariable, ProblemData.TrainingIndizes).ToList(); 76 76 var mean = targetValues.Average(); … … 78 78 EstimationLimits.Upper = mean + PunishmentFactor * range; 79 79 EstimationLimits.Lower = mean - PunishmentFactor * range; 80 } else { 81 EstimationLimits.Upper = double.MaxValue; 82 EstimationLimits.Lower = double.MinValue; 80 83 } 81 84 } -
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 } -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SingleObjective/SymbolicRegressionSingleObjectiveProblem.cs
r6740 r6754 74 74 75 75 private void UpdateEstimationLimits() { 76 if (ProblemData.Training Partition.Start < ProblemData.TrainingPartition.End) {76 if (ProblemData.TrainingIndizes.Any()) { 77 77 var targetValues = ProblemData.Dataset.GetDoubleValues(ProblemData.TargetVariable, ProblemData.TrainingIndizes).ToList(); 78 78 var mean = targetValues.Average(); … … 80 80 EstimationLimits.Upper = mean + PunishmentFactor * range; 81 81 EstimationLimits.Lower = mean - PunishmentFactor * range; 82 } else { 83 EstimationLimits.Upper = double.MaxValue; 84 EstimationLimits.Lower = double.MinValue; 82 85 } 83 86 }
Note: See TracChangeset
for help on using the changeset viewer.