Changeset 2440 for trunk/sources/HeuristicLab.GP.StructureIdentification/3.3/HL3TreeEvaluatorInjector.cs
- Timestamp:
- 10/20/09 11:20:13 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.GP.StructureIdentification/3.3/HL3TreeEvaluatorInjector.cs
r2327 r2440 37 37 AddVariableInfo(new VariableInfo("TrainingSamplesStart", "Start index of training set", typeof(DoubleData), VariableKind.In)); 38 38 AddVariableInfo(new VariableInfo("TrainingSamplesEnd", "End index of training set", typeof(DoubleData), VariableKind.In)); 39 AddVariableInfo(new VariableInfo("TargetVariable", " Index of the target variable", typeof(IntData), VariableKind.In));39 AddVariableInfo(new VariableInfo("TargetVariable", "Name of the target variable", typeof(StringData), VariableKind.In)); 40 40 AddVariableInfo(new VariableInfo("PunishmentFactor", "The punishment factor limits the estimated values to a certain range", typeof(DoubleData), VariableKind.In)); 41 41 AddVariableInfo(new VariableInfo("TreeEvaluator", "The tree evaluator to evaluate models", typeof(ITreeEvaluator), VariableKind.New)); … … 51 51 int start = GetVariableValue<IntData>("TrainingSamplesStart", scope, true).Data; 52 52 int end = GetVariableValue<IntData>("TrainingSamplesEnd", scope, true).Data; 53 int targetVariable = GetVariableValue<IntData>("TargetVariable", scope, true).Data;53 string targetVariable = GetVariableValue<StringData>("TargetVariable", scope, true).Data; 54 54 double mean = dataset.GetMean(targetVariable, start, end); 55 55 double range = dataset.GetRange(targetVariable, start, end);
Note: See TracChangeset
for help on using the changeset viewer.