Changeset 6760 for branches/PersistenceSpeedUp/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/SingleObjective/SymbolicClassificationSingleObjectiveProblem.cs
- Timestamp:
- 09/14/11 13:59:25 (13 years ago)
- Location:
- branches/PersistenceSpeedUp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PersistenceSpeedUp
- Property svn:ignore
-
old new 12 12 *.psess 13 13 *.vsp 14 *.docstates
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/PersistenceSpeedUp/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/SingleObjective/SymbolicClassificationSingleObjectiveProblem.cs
r5854 r6760 72 72 73 73 private void UpdateEstimationLimits() { 74 if (ProblemData.Training Partition.Start < ProblemData.TrainingPartition.End) {75 var targetValues = ProblemData.Dataset.Get VariableValues(ProblemData.TargetVariable, ProblemData.TrainingPartition.Start, ProblemData.TrainingPartition.End);74 if (ProblemData.TrainingIndizes.Any()) { 75 var targetValues = ProblemData.Dataset.GetDoubleValues(ProblemData.TargetVariable, ProblemData.TrainingIndizes).ToList(); 76 76 var mean = targetValues.Average(); 77 77 var range = targetValues.Max() - targetValues.Min(); 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 }
Note: See TracChangeset
for help on using the changeset viewer.