Changeset 712 for trunk/sources/HeuristicLab.GP.StructureIdentification/Evaluators/GPEvaluatorBase.cs
- Timestamp:
- 11/05/08 21:34:12 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.GP.StructureIdentification/Evaluators/GPEvaluatorBase.cs
r702 r712 57 57 double[] backupValues = null; 58 58 // prepare for autoregressive modelling by saving the original values of the target-variable to a backup array 59 if (useEstimatedValues &&60 (backupValues == null || backupValues.Length !=end-start)) {59 if (useEstimatedValues && 60 (backupValues == null || backupValues.Length != end - start)) { 61 61 backupValues = new double[end - start]; 62 for (int i = start; i < end; i++) {62 for (int i = start; i < end; i++) { 63 63 backupValues[i - start] = dataset.GetValue(i, targetVariable); 64 64 } … … 72 72 73 73 // restore the values of the target variable from the backup array if necessary 74 if (useEstimatedValues) {75 for (int i = start; i < end; i++) {74 if (useEstimatedValues) { 75 for (int i = start; i < end; i++) { 76 76 dataset.SetValue(i, targetVariable, backupValues[i - start]); 77 77 } … … 79 79 80 80 // update the value of total evaluated nodes 81 scope.GetVariableValue<DoubleData>("TotalEvaluatedNodes", true).Data = totalEvaluatedNodes + treeSize * (end -start);81 scope.GetVariableValue<DoubleData>("TotalEvaluatedNodes", true).Data = totalEvaluatedNodes + treeSize * (end - start); 82 82 return null; 83 83 }
Note: See TracChangeset
for help on using the changeset viewer.