Changeset 8026 for trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SymbolicRegressionModel.cs
- Timestamp:
- 06/18/12 10:14:49 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SymbolicRegressionModel.cs
r7259 r8026 35 35 [Storable] 36 36 private double lowerEstimationLimit; 37 public double LowerEstimationLimit { get { return lowerEstimationLimit; } } 37 38 [Storable] 38 39 private double upperEstimationLimit; 40 public double UpperEstimationLimit { get { return upperEstimationLimit; } } 39 41 40 42 [StorableConstructor] … … 73 75 var rows = problemData.TrainingIndizes; 74 76 var estimatedValues = model.Interpreter.GetSymbolicExpressionTreeValues(model.SymbolicExpressionTree, dataset, rows); 77 var boundedEstimatedValues = estimatedValues.LimitToRange(model.LowerEstimationLimit, model.UpperEstimationLimit); 75 78 var targetValues = dataset.GetDoubleValues(targetVariable, rows); 76 79 double alpha; 77 80 double beta; 78 81 OnlineCalculatorError errorState; 79 OnlineLinearScalingParameterCalculator.Calculate( estimatedValues, targetValues, out alpha, out beta, out errorState);82 OnlineLinearScalingParameterCalculator.Calculate(boundedEstimatedValues, targetValues, out alpha, out beta, out errorState); 80 83 if (errorState != OnlineCalculatorError.None) return; 81 84
Note: See TracChangeset
for help on using the changeset viewer.