Changeset 481 for trunk/sources
- Timestamp:
- 08/10/08 11:57:49 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.StructureIdentification/Evaluation/GPEvaluatorBase.cs
r480 r481 69 69 treeSize = scope.GetVariableValue<IntData>("TreeSize", false).Data; 70 70 totalEvaluatedNodes = scope.GetVariableValue<DoubleData>("TotalEvaluatedNodes", true).Data; 71 trainingStart = GetVariableValue<IntData>("TrainingSamplesStart", scope, true).Data;72 trainingEnd = GetVariableValue<IntData>("TrainingSamplesEnd", scope, true).Data;71 int trainingStart = GetVariableValue<IntData>("TrainingSamplesStart", scope, true).Data; 72 int trainingEnd = GetVariableValue<IntData>("TrainingSamplesEnd", scope, true).Data; 73 73 useEstimatedValues = GetVariableValue<BoolData>("UseEstimatedTargetValue", scope, true).Data; 74 74 // prepare for autoregressive modelling by saving the original values of the target-variable to a backup array 75 if(useEstimatedValues && backupValues == null) { 75 if(useEstimatedValues && 76 (backupValues == null || trainingStart!=this.trainingStart || trainingEnd!=this.trainingEnd)) { 77 this.trainingStart = trainingStart; 78 this.trainingEnd = trainingEnd; 76 79 backupValues = new double[trainingEnd - trainingStart]; 77 80 for(int i = trainingStart; i < trainingEnd; i++) {
Note: See TracChangeset
for help on using the changeset viewer.