Changeset 16514
- Timestamp:
- 01/07/19 18:16:54 (6 years ago)
- Location:
- branches/2974_Constants_Optimization
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2974_Constants_Optimization/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SingleObjective/Evaluators/ConstantsOptimizationEvaluator.cs
r16509 r16514 79 79 var constantOptimizationRows = GenerateRowsToEvaluate(rowsPercentage); 80 80 quality = ConstantsOptimization.LMConstantsOptimizer.OptimizeConstants(solution, problemData.Dataset, problemData.TargetVariable, constantOptimizationRows, applyLinearScaling, ConstantOptimizationIterations.Value); 81 if ( double.IsNaN(quality) || ConstantOptimizationRowsPercentage.Value != RelativeNumberOfEvaluatedSamplesParameter.ActualValue.Value) {81 if (quality < 0|| double.IsNaN(quality) || ConstantOptimizationRowsPercentage.Value != RelativeNumberOfEvaluatedSamplesParameter.ActualValue.Value) { 82 82 var evaluationRows = GenerateRowsToEvaluate(); 83 83 quality = SymbolicRegressionSingleObjectivePearsonRSquaredEvaluator.Calculate(interpreter, solution, estimationLimits.Lower, estimationLimits.Upper, problemData, evaluationRows, applyLinearScaling); -
branches/2974_Constants_Optimization/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/ConstantsOptimization/LMConstantsOptimizer.cs
r16507 r16514 73 73 74 74 var result = OptimizeConstants(term, initialConstants, x, y, maxIterations, out constants); 75 if (result !=0.0 && constants.Length != 0)75 if (result > 0.0 && constants.Length != 0) 76 76 Util.UpdateConstants(numericNodes, constants); 77 77
Note: See TracChangeset
for help on using the changeset viewer.