Changeset 18104 for branches/3136_Structural_GP/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SingleObjective/Evaluators/NMSESingleObjectiveConstraintsEvaluator.cs
- Timestamp:
- 12/03/21 13:46:20 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3136_Structural_GP/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SingleObjective/Evaluators/NMSESingleObjectiveConstraintsEvaluator.cs
r18103 r18104 141 141 .GetSubtree(0); //Offset 142 142 var scaling = offset.GetSubtree(0); 143 143 144 144 //Check if tree contains offset and scaling nodes 145 145 if (!(offset.Symbol is Addition) || !(scaling.Symbol is Multiplication)) … … 155 155 156 156 var targetValues = problemData.Dataset.GetDoubleValues(problemData.TargetVariable, rows); 157 OnlineLinearScalingParameterCalculator.Calculate(estimatedValues, targetValues, out var alpha, out var beta, 158 out var errorState); 157 OnlineLinearScalingParameterCalculator.Calculate(estimatedValues, targetValues, out var alpha, out var beta, out var errorState); 159 158 if (errorState == OnlineCalculatorError.None) { 160 159 //Set alpha and beta to the scaling nodes from ia grammar … … 249 248 interpreter, tree, 250 249 problemData, rows, 251 applyLinearScaling: false, // OptimizeConstants deletes the scaling terms -> wrong estimations250 applyLinearScaling: false, // Tree already contains scaling terms 252 251 ConstantOptimizationIterations, 253 252 updateVariableWeights: true, … … 255 254 upperEstimationLimit); 256 255 257 if (applyLinearScaling) // extra scaling terms, which are included in tree258 CalcLinearScalingTerms(tree, problemData, rows, interpreter); 259 256 else if (applyLinearScaling) // extra scaling terms, which are included in tree 257 CalcLinearScalingTerms(tree, problemData, rows, interpreter); 258 260 259 return Calculate( 261 260 tree, problemData,
Note: See TracChangeset
for help on using the changeset viewer.