- Timestamp:
- 01/18/17 16:59:47 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.OSGAEvaluator/HeuristicLab.OSGAEvaluator/SymbolicRegressionSingleObjectiveOSGAEvaluator.cs
r14584 r14585 212 212 213 213 private double Calculate(ISymbolicDataAnalysisExpressionTreeInterpreter interpreter, ISymbolicExpressionTree solution, DoubleLimit estimationLimits, IRegressionProblemData problemData, IEnumerable<int> rows) { 214 var estimatedValues = interpreter.GetSymbolicExpressionTreeValues(solution, problemData.Dataset, rows); 214 var lowerEstimationLimit = EstimationLimitsParameter.ActualValue.Lower; 215 var upperEstimationLimit = EstimationLimitsParameter.ActualValue.Upper; 216 var estimatedValues = interpreter.GetSymbolicExpressionTreeValues(solution, problemData.Dataset, rows).LimitToRange(lowerEstimationLimit, upperEstimationLimit); 215 217 var targetValues = problemData.Dataset.GetDoubleValues(problemData.TargetVariable, rows).ToList(); 216 218 var parentQualities = ParentQualitiesParameter.ActualValue.Select(x => x.Value); … … 234 236 threshold = parentQuality * (1 - actualSelectionPressure.Value / 100.0); 235 237 } 238 236 239 var estimatedEnumerator = estimatedValues.GetEnumerator(); 237 240 var targetEnumerator = targetValues.GetEnumerator();
Note: See TracChangeset
for help on using the changeset viewer.