Changeset 14281
- Timestamp:
- 09/15/16 10:16:17 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.OSGAEvaluator/HeuristicLab.OSGAEvaluator/SymbolicRegressionSingleObjectiveOSGAEvaluator.cs
r14280 r14281 302 302 calculator.Reset(); 303 303 // save estimated values into the list (for caching) 304 int j = i;305 304 int end = Math.Min(trainingPartitionSize, i + interval); 306 while (j < end && e.MoveNext()) {305 for (int j = i; j < end && e.MoveNext(); ++j) { 307 306 estimated.Add(e.Current); 308 j++;309 307 } 310 308 var start = problemData.TrainingPartition.Start; 311 309 // add (estimated, target) pairs to the calculator 312 for ( j = 0; j < end; ++j) {310 for (int j = 0; j < end; ++j) { 313 311 var index = j + start; 314 312 calculator.Add(targetValues[index], estimated[j]); 315 313 } 316 314 // add (target, target) pairs to the calculator (simulate perfect correlation on the remaining rows) 317 for ( ; j < trainingPartitionSize; ++j) {315 for (int j = end; j < trainingPartitionSize; ++j) { 318 316 var index = j + start; 319 317 var v = targetValues[index];
Note: See TracChangeset
for help on using the changeset viewer.