Free cookie consent management tool by TermsFeed Policy Generator

Changeset 8030


Ignore:
Timestamp:
06/18/12 10:55:52 (12 years ago)
Author:
gkronber
Message:

#1874: reverted r8026. The behaviour of calculating the scaling parameters based on the unbounded values is intentional.

Location:
trunk/sources
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/SymbolicDiscriminantFunctionClassificationModel.cs

    r8026 r8030  
    127127      var rows = problemData.TrainingIndizes;
    128128      var estimatedValues = model.Interpreter.GetSymbolicExpressionTreeValues(model.SymbolicExpressionTree, dataset, rows);
    129       var boundedEstimatedValues = estimatedValues.LimitToRange(model.LowerEstimationLimit, model.UpperEstimationLimit);
    130129      var targetValues = dataset.GetDoubleValues(targetVariable, rows);
    131130      double alpha;
    132131      double beta;
    133132      OnlineCalculatorError errorState;
    134       OnlineLinearScalingParameterCalculator.Calculate(boundedEstimatedValues, targetValues, out alpha, out beta, out errorState);
     133      OnlineLinearScalingParameterCalculator.Calculate(estimatedValues, targetValues, out alpha, out beta, out errorState);
    135134      if (errorState != OnlineCalculatorError.None) return;
    136135
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SymbolicRegressionModel.cs

    r8026 r8030  
    7575      var rows = problemData.TrainingIndizes;
    7676      var estimatedValues = model.Interpreter.GetSymbolicExpressionTreeValues(model.SymbolicExpressionTree, dataset, rows);
    77       var boundedEstimatedValues = estimatedValues.LimitToRange(model.LowerEstimationLimit, model.UpperEstimationLimit);
    7877      var targetValues = dataset.GetDoubleValues(targetVariable, rows);
    7978      double alpha;
    8079      double beta;
    8180      OnlineCalculatorError errorState;
    82       OnlineLinearScalingParameterCalculator.Calculate(boundedEstimatedValues, targetValues, out alpha, out beta, out errorState);
     81      OnlineLinearScalingParameterCalculator.Calculate(estimatedValues, targetValues, out alpha, out beta, out errorState);
    8382      if (errorState != OnlineCalculatorError.None) return;
    8483
Note: See TracChangeset for help on using the changeset viewer.