Changeset 1858 for trunk/sources/HeuristicLab.SupportVectorMachines
- Timestamp:
- 05/20/09 11:30:24 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.SupportVectorMachines/3.2/SupportVectorRegression.cs
r1857 r1858 47 47 48 48 public IOperator ProblemInjector { 49 get; 50 set; 51 } 49 get { 50 IOperator main = GetMainOperator(); 51 return main.SubOperators[1]; 52 } 53 set { 54 IOperator main = GetMainOperator(); 55 main.RemoveSubOperator(1); 56 main.AddSubOperator(value, 1); 57 } 58 } 59 52 60 public DoubleArrayData NuList { 53 61 get { return GetVariableInjector().GetVariable("NuList").GetValue<DoubleArrayData>(); } … … 72 80 public SupportVectorRegression() { 73 81 engine = new SequentialEngine.SequentialEngine(); 74 ProblemInjector = new EmptyOperator();75 82 CombinedOperator algo = CreateAlgorithm(); 76 83 engine.OperatorGraph.AddOperator(algo); … … 92 99 SequentialProcessor main = new SequentialProcessor(); 93 100 main.AddSubOperator(CreateGlobalInjector()); 94 main.AddSubOperator( ProblemInjector);101 main.AddSubOperator(new ProblemInjector()); 95 102 96 103 SequentialProcessor nuLoop = new SequentialProcessor(); … … 253 260 254 261 private IOperator GetVariableInjector() { 262 return GetMainOperator().SubOperators[0]; 263 } 264 265 private IOperator GetMainOperator() { 255 266 CombinedOperator svm = (CombinedOperator)Engine.OperatorGraph.InitialOperator; 256 return svm.OperatorGraph.InitialOperator .SubOperators[0];267 return svm.OperatorGraph.InitialOperator; 257 268 } 258 269
Note: See TracChangeset
for help on using the changeset viewer.