Changeset 2328 for trunk/sources/HeuristicLab.LinearRegression
- Timestamp:
- 09/03/09 15:00:23 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.LinearRegression/3.2/LinearRegression.cs
r2319 r2328 97 97 problemInjector.AddVariable(new HeuristicLab.Core.Variable("MaxNumberOfTrainingSamples", new IntData(5000))); 98 98 99 HL2TreeEvaluatorInjector treeEvaluatorInjector = new HL2TreeEvaluatorInjector(); 100 99 101 IOperator shuffler = new DatasetShuffler(); 100 102 shuffler.GetVariableInfo("ShuffleStart").ActualName = "TrainingSamplesStart"; … … 108 110 seq.AddSubOperator(problemInjector); 109 111 seq.AddSubOperator(globalInjector); 112 seq.AddSubOperator(treeEvaluatorInjector); 110 113 seq.AddSubOperator(shuffler); 111 114 seq.AddSubOperator(lrOperator); … … 120 123 private IOperator CreateGlobalInjector() { 121 124 VariableInjector injector = new VariableInjector(); 122 injector.AddVariable(new HeuristicLab.Core.Variable("PunishmentFactor", new DoubleData(10 )));125 injector.AddVariable(new HeuristicLab.Core.Variable("PunishmentFactor", new DoubleData(1000))); 123 126 injector.AddVariable(new HeuristicLab.Core.Variable("TotalEvaluatedNodes", new DoubleData(0))); 124 injector.AddVariable(new HeuristicLab.Core.Variable("TreeEvaluator", new HL2TreeEvaluator()));125 127 injector.AddVariable(new HeuristicLab.Core.Variable("UseEstimatedTargetValue", new BoolData(false))); 126 128 … … 272 274 } 273 275 274 275 276 protected internal virtual IAnalyzerModel CreateLRModel(IScope bestModelScope) { 276 277 IAnalyzerModel model = new AnalyzerModel();
Note: See TracChangeset
for help on using the changeset viewer.