Changeset 18183
- Timestamp:
- 01/11/22 11:09:29 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3136_Structural_GP/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SingleObjective/Evaluators/NMSESingleObjectiveConstraintsEvaluator.cs
r18179 r18183 254 254 lowerEstimationLimit, 255 255 upperEstimationLimit); 256 257 256 else if (applyLinearScaling) // extra scaling terms, which are included in tree 258 257 CalcLinearScalingTerms(tree, problemData, rows, interpreter); … … 342 341 counter.GradientEvaluations += rowEvaluationsCounter.GradientEvaluations / n; 343 342 344 // * TerminationType, complet etion code:343 // * TerminationType, completion code: 345 344 // * -8 optimizer detected NAN/INF values either in the function itself, 346 345 // or in its Jacobian … … 356 355 // X contains point which was "current accepted" when termination 357 356 // request was submitted. 358 if (rep.terminationtype <0) {357 if (rep.terminationtype > 0) { 359 358 UpdateParameters(tree, c, updateVariableWeights); 360 359 } … … 399 398 return (double[] c, double[] resid, object o) => { 400 399 for (int i = 0; i < y.Length; i++) { 401 Buffer.BlockCopy(x, i * d * sizeof(double), xi, 0, d *sizeof(double)); // copy row. We are using BlockCopy instead of Array.Copy because x has rank 2400 Buffer.BlockCopy(x, i * d * sizeof(double), xi, 0, d * sizeof(double)); // copy row. We are using BlockCopy instead of Array.Copy because x has rank 2 402 401 resid[i] = func(c, xi) - y[i]; 403 402 }
Note: See TracChangeset
for help on using the changeset viewer.