- Timestamp:
- 09/03/09 15:00:23 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.GP.StructureIdentification/3.3/Evaluators/GPEvaluatorBase.cs
r2285 r2328 34 34 AddVariableInfo(new VariableInfo("TargetVariable", "Index of the column of the dataset that holds the target variable", typeof(IntData), VariableKind.In)); 35 35 AddVariableInfo(new VariableInfo("TotalEvaluatedNodes", "Number of evaluated nodes", typeof(DoubleData), VariableKind.In | VariableKind.Out)); 36 AddVariableInfo(new VariableInfo("TrainingSamplesStart", "Start index of training samples in dataset", typeof(IntData), VariableKind.In));37 AddVariableInfo(new VariableInfo("TrainingSamplesEnd", "End index of training samples in dataset", typeof(IntData), VariableKind.In));38 36 AddVariableInfo(new VariableInfo("SamplesStart", "Start index of samples in dataset to evaluate", typeof(IntData), VariableKind.In)); 39 37 AddVariableInfo(new VariableInfo("SamplesEnd", "End index of samples in dataset to evaluate", typeof(IntData), VariableKind.In)); … … 47 45 IGeneticProgrammingModel gpModel = GetVariableValue<IGeneticProgrammingModel>("FunctionTree", scope, true); 48 46 double totalEvaluatedNodes = scope.GetVariableValue<DoubleData>("TotalEvaluatedNodes", true).Data; 49 int trainingStart = GetVariableValue<IntData>("TrainingSamplesStart", scope, true).Data;50 int trainingEnd = GetVariableValue<IntData>("TrainingSamplesEnd", scope, true).Data;51 47 int start = GetVariableValue<IntData>("SamplesStart", scope, true).Data; 52 48 int end = GetVariableValue<IntData>("SamplesEnd", scope, true).Data; 53 49 bool useEstimatedValues = GetVariableValue<BoolData>("UseEstimatedTargetValue", scope, true).Data; 54 50 ITreeEvaluator evaluator = GetVariableValue<ITreeEvaluator>("TreeEvaluator", scope, true); 55 evaluator.PrepareForEvaluation(dataset, targetVariable, trainingStart, trainingEnd,gpModel.FunctionTree);51 evaluator.PrepareForEvaluation(dataset, gpModel.FunctionTree); 56 52 57 53 double[] backupValues = null;
Note: See TracChangeset
for help on using the changeset viewer.