Free cookie consent management tool by TermsFeed Policy Generator

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

#1874: Corrected scaling in SymbolicDataAnalysis models.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.