- Timestamp:
- 09/21/09 20:23:47 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.LinearRegression/3.2/LinearRegression.cs
r2363 r2375 69 69 probInjector.OperatorGraph.InitialOperator.AddSubOperator(value, 0); 70 70 } 71 } 72 public IEnumerable<int> AllowedVariables { 73 get { 74 ItemList<IntData> allowedVariables = ProblemInjector.GetVariableValue<ItemList<IntData>>("AllowedFeatures", null, false); 75 return allowedVariables.Select(x => x.Data); 76 } 77 set { 78 ItemList<IntData> allowedVariables = ProblemInjector.GetVariableValue<ItemList<IntData>>("AllowedFeatures", null, false); 79 foreach (int x in value) allowedVariables.Add(new IntData(x)); 80 } 81 } 82 83 public int TrainingSamplesStart { 84 get { return ProblemInjector.GetVariableValue<IntData>("TrainingSamplesStart", null, false).Data; } 85 set { ProblemInjector.GetVariableValue<IntData>("TrainingSamplesStart", null, false).Data = value; } 86 } 87 88 public int TrainingSamplesEnd { 89 get { return ProblemInjector.GetVariableValue<IntData>("TrainingSamplesEnd", null, false).Data; } 90 set { ProblemInjector.GetVariableValue<IntData>("TrainingSamplesEnd", null, false).Data = value; } 91 } 92 93 public int ValidationSamplesStart { 94 get { return ProblemInjector.GetVariableValue<IntData>("ValidationSamplesStart", null, false).Data; } 95 set { ProblemInjector.GetVariableValue<IntData>("ValidationSamplesStart", null, false).Data = value; } 96 } 97 98 public int ValidationSamplesEnd { 99 get { return ProblemInjector.GetVariableValue<IntData>("ValidationSamplesEnd", null, false).Data; } 100 set { ProblemInjector.GetVariableValue<IntData>("ValidationSamplesEnd", null, false).Data = value; } 101 } 102 103 public int TestSamplesStart { 104 get { return ProblemInjector.GetVariableValue<IntData>("TestSamplesStart", null, false).Data; } 105 set { ProblemInjector.GetVariableValue<IntData>("TestSamplesStart", null, false).Data = value; } 106 } 107 108 public int TestSamplesEnd { 109 get { return ProblemInjector.GetVariableValue<IntData>("TestSamplesEnd", null, false).Data; } 110 set { ProblemInjector.GetVariableValue<IntData>("TestSamplesEnd", null, false).Data = value; } 71 111 } 72 112
Note: See TracChangeset
for help on using the changeset viewer.