Free cookie consent management tool by TermsFeed Policy Generator

Changeset 8026 for trunk/sources


Ignore:
Timestamp:
06/18/12 10:14:49 (13 years ago)
Author:
mkommend
Message:

#1874: Corrected scaling in SymbolicDataAnalysis models.

Location:
trunk/sources
Files:
2 edited

Legend:

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

    r7259 r8026  
    127127      var rows = problemData.TrainingIndizes;
    128128      var estimatedValues = model.Interpreter.GetSymbolicExpressionTreeValues(model.SymbolicExpressionTree, dataset, rows);
     129      var boundedEstimatedValues = estimatedValues.LimitToRange(model.LowerEstimationLimit, model.UpperEstimationLimit);
    129130      var targetValues = dataset.GetDoubleValues(targetVariable, rows);
    130131      double alpha;
    131132      double beta;
    132133      OnlineCalculatorError errorState;
    133       OnlineLinearScalingParameterCalculator.Calculate(estimatedValues, targetValues, out alpha, out beta, out errorState);
     134      OnlineLinearScalingParameterCalculator.Calculate(boundedEstimatedValues, targetValues, out alpha, out beta, out errorState);
    134135      if (errorState != OnlineCalculatorError.None) return;
    135136
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SymbolicRegressionModel.cs

    r7259 r8026  
    3535    [Storable]
    3636    private double lowerEstimationLimit;
     37    public double LowerEstimationLimit { get { return lowerEstimationLimit; } }
    3738    [Storable]
    3839    private double upperEstimationLimit;
     40    public double UpperEstimationLimit { get { return upperEstimationLimit; } }
    3941
    4042    [StorableConstructor]
     
    7375      var rows = problemData.TrainingIndizes;
    7476      var estimatedValues = model.Interpreter.GetSymbolicExpressionTreeValues(model.SymbolicExpressionTree, dataset, rows);
     77      var boundedEstimatedValues = estimatedValues.LimitToRange(model.LowerEstimationLimit, model.UpperEstimationLimit);
    7578      var targetValues = dataset.GetDoubleValues(targetVariable, rows);
    7679      double alpha;
    7780      double beta;
    7881      OnlineCalculatorError errorState;
    79       OnlineLinearScalingParameterCalculator.Calculate(estimatedValues, targetValues, out alpha, out beta, out errorState);
     82      OnlineLinearScalingParameterCalculator.Calculate(boundedEstimatedValues, targetValues, out alpha, out beta, out errorState);
    8083      if (errorState != OnlineCalculatorError.None) return;
    8184
Note: See TracChangeset for help on using the changeset viewer.