- Timestamp:
- 10/20/09 11:20:13 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.LinearRegression/3.2/LinearRegression.cs
r2419 r2440 52 52 } 53 53 54 public virtual intTargetVariable {55 get { return ProblemInjector.GetVariableValue< IntData>("TargetVariable", null, false).Data; }56 set { ProblemInjector.GetVariableValue< IntData>("TargetVariable", null, false).Data = value; }54 public virtual string TargetVariable { 55 get { return ProblemInjector.GetVariableValue<StringData>("TargetVariable", null, false).Data; } 56 set { ProblemInjector.GetVariableValue<StringData>("TargetVariable", null, false).Data = value; } 57 57 } 58 58 … … 70 70 } 71 71 } 72 public IEnumerable< int> AllowedVariables {72 public IEnumerable<string> AllowedVariables { 73 73 get { 74 ItemList< IntData> allowedVariables = ProblemInjector.GetVariableValue<ItemList<IntData>>("AllowedFeatures", null, false);74 ItemList<StringData> allowedVariables = ProblemInjector.GetVariableValue<ItemList<StringData>>("AllowedFeatures", null, false); 75 75 return allowedVariables.Select(x => x.Data); 76 76 } 77 77 set { 78 ItemList< IntData> allowedVariables = ProblemInjector.GetVariableValue<ItemList<IntData>>("AllowedFeatures", null, false);79 foreach ( int x in value) allowedVariables.Add(new IntData(x));78 ItemList<StringData> allowedVariables = ProblemInjector.GetVariableValue<ItemList<StringData>>("AllowedFeatures", null, false); 79 foreach (string x in value) allowedVariables.Add(new StringData(x)); 80 80 } 81 81 }
Note: See TracChangeset
for help on using the changeset viewer.