- Timestamp:
- 10/20/09 11:20:13 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.GP.StructureIdentification/3.3/PredictorBuilder.cs
r2332 r2440 40 40 AddVariableInfo(new VariableInfo("TrainingSamplesStart", "Start index of training set", typeof(DoubleData), VariableKind.In)); 41 41 AddVariableInfo(new VariableInfo("TrainingSamplesEnd", "End index of training set", typeof(DoubleData), VariableKind.In)); 42 AddVariableInfo(new VariableInfo("TargetVariable", " Index of the target variable", typeof(IntData), VariableKind.In));42 AddVariableInfo(new VariableInfo("TargetVariable", "Name of the target variable", typeof(StringData), VariableKind.In)); 43 43 AddVariableInfo(new VariableInfo("Predictor", "The predictor combines the function tree and the evaluator and can be used to generate estimated values", typeof(IPredictor), VariableKind.New)); 44 44 } … … 55 55 int start = GetVariableValue<IntData>("TrainingSamplesStart", scope, true).Data; 56 56 int end = GetVariableValue<IntData>("TrainingSamplesEnd", scope, true).Data; 57 int targetVariable = GetVariableValue<IntData>("TargetVariable", scope, true).Data;57 string targetVariable = GetVariableValue<StringData>("TargetVariable", scope, true).Data; 58 58 IPredictor predictor = CreatePredictor(model, evaluator, punishmentFactor, dataset, targetVariable, start, end); 59 59 scope.AddVariable(new HeuristicLab.Core.Variable(scope.TranslateName("Predictor"), predictor));
Note: See TracChangeset
for help on using the changeset viewer.