- Timestamp:
- 10/20/09 11:20:13 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Modeling/3.2/VariableQualityImpactCalculator.cs
r2379 r2440 36 36 AddVariableInfo(new VariableInfo("Predictor", "The predictor used to evaluate the model", typeof(IPredictor), VariableKind.In)); 37 37 AddVariableInfo(new VariableInfo("Dataset", "Dataset", typeof(Dataset), VariableKind.In)); 38 AddVariableInfo(new VariableInfo("TargetVariable", "TargetVariable", typeof( IntData), VariableKind.In));38 AddVariableInfo(new VariableInfo("TargetVariable", "TargetVariable", typeof(StringData), VariableKind.In)); 39 39 AddVariableInfo(new VariableInfo("InputVariableNames", "Names of used variables in the model (optional)", typeof(ItemList<StringData>), VariableKind.In)); 40 40 AddVariableInfo(new VariableInfo("SamplesStart", "SamplesStart", typeof(IntData), VariableKind.In)); … … 50 50 IPredictor predictor = GetVariableValue<IPredictor>("Predictor", scope, true); 51 51 Dataset dataset = GetVariableValue<Dataset>("Dataset", scope, true); 52 int targetVariable = GetVariableValue<IntData>("TargetVariable", scope, true).Data;53 string targetVariableName = dataset.GetVariableName(targetVariable);52 string targetVariableName = GetVariableValue<StringData>("TargetVariable", scope, true).Data; 53 int targetVariable = dataset.GetVariableIndex(targetVariableName); 54 54 ItemList<StringData> inputVariableNames = GetVariableValue<ItemList<StringData>>("InputVariableNames", scope, true, false); 55 55 int start = GetVariableValue<IntData>("SamplesStart", scope, true).Data;
Note: See TracChangeset
for help on using the changeset viewer.