Changeset 8026
- Timestamp:
- 06/18/12 10:14:49 (12 years ago)
- Location:
- trunk/sources
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/SymbolicDiscriminantFunctionClassificationModel.cs
r7259 r8026 127 127 var rows = problemData.TrainingIndizes; 128 128 var estimatedValues = model.Interpreter.GetSymbolicExpressionTreeValues(model.SymbolicExpressionTree, dataset, rows); 129 var boundedEstimatedValues = estimatedValues.LimitToRange(model.LowerEstimationLimit, model.UpperEstimationLimit); 129 130 var targetValues = dataset.GetDoubleValues(targetVariable, rows); 130 131 double alpha; 131 132 double beta; 132 133 OnlineCalculatorError errorState; 133 OnlineLinearScalingParameterCalculator.Calculate( estimatedValues, targetValues, out alpha, out beta, out errorState);134 OnlineLinearScalingParameterCalculator.Calculate(boundedEstimatedValues, targetValues, out alpha, out beta, out errorState); 134 135 if (errorState != OnlineCalculatorError.None) return; 135 136 -
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.