Changeset 8030
- Timestamp:
- 06/18/12 10:55:52 (12 years ago)
- Location:
- trunk/sources
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/SymbolicDiscriminantFunctionClassificationModel.cs
r8026 r8030 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);130 129 var targetValues = dataset.GetDoubleValues(targetVariable, rows); 131 130 double alpha; 132 131 double beta; 133 132 OnlineCalculatorError errorState; 134 OnlineLinearScalingParameterCalculator.Calculate( boundedEstimatedValues, targetValues, out alpha, out beta, out errorState);133 OnlineLinearScalingParameterCalculator.Calculate(estimatedValues, targetValues, out alpha, out beta, out errorState); 135 134 if (errorState != OnlineCalculatorError.None) return; 136 135 -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SymbolicRegressionModel.cs
r8026 r8030 75 75 var rows = problemData.TrainingIndizes; 76 76 var estimatedValues = model.Interpreter.GetSymbolicExpressionTreeValues(model.SymbolicExpressionTree, dataset, rows); 77 var boundedEstimatedValues = estimatedValues.LimitToRange(model.LowerEstimationLimit, model.UpperEstimationLimit);78 77 var targetValues = dataset.GetDoubleValues(targetVariable, rows); 79 78 double alpha; 80 79 double beta; 81 80 OnlineCalculatorError errorState; 82 OnlineLinearScalingParameterCalculator.Calculate( boundedEstimatedValues, targetValues, out alpha, out beta, out errorState);81 OnlineLinearScalingParameterCalculator.Calculate(estimatedValues, targetValues, out alpha, out beta, out errorState); 83 82 if (errorState != OnlineCalculatorError.None) return; 84 83
Note: See TracChangeset
for help on using the changeset viewer.