Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/19/11 02:22:45 (13 years ago)
Author:
mkommend
Message:

#1418:

  • Worked on IntRange and DoubleRange
  • Updated evaluators, analyzers, problems and problem data to use IntRanges
  • Removed properties to access the value of LookupParameter
  • Corrected files.txt
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SingleObjective/SymbolicRegressionSingleObjectiveValidationBestSolutionAnalyzer.cs

    r5729 r5759  
    2020#endregion
    2121
    22 using System.Collections.Generic;
    23 using System.Linq;
    2422using HeuristicLab.Common;
    2523using HeuristicLab.Core;
    2624using HeuristicLab.Data;
    2725using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
    28 using HeuristicLab.Operators;
    29 using HeuristicLab.Optimization;
    3026using HeuristicLab.Parameters;
    3127using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     
    5046      get { return (IValueLookupParameter<DoubleValue>)Parameters[LowerEstimationLimitParameterName]; }
    5147    }
     48    public IValueParameter<BoolValue> ApplyLinearScalingParameter {
     49      get { return (IValueParameter<BoolValue>)Parameters[ApplyLinearScalingParameterName]; }
     50    }
    5251    #endregion
    5352
    5453    #region properties
    55     public DoubleValue UpperEstimationLimit {
    56       get { return UpperEstimationLimitParameter.ActualValue; }
    57     }
    58     public DoubleValue LowerEstimationLimit {
    59       get { return LowerEstimationLimitParameter.ActualValue; }
    60     }
    61     public IValueParameter<BoolValue> ApplyLinearScalingParameter {
    62       get { return (IValueParameter<BoolValue>)Parameters[ApplyLinearScalingParameterName]; }
    63     }
    6454    public BoolValue ApplyLinearScaling {
    6555      get { return ApplyLinearScalingParameter.Value; }
     
    8272
    8373    protected override ISymbolicRegressionSolution CreateSolution(ISymbolicExpressionTree bestTree, double bestQuality) {
    84       var model = new SymbolicRegressionModel(bestTree, SymbolicDataAnalysisTreeInterpreter, LowerEstimationLimit.Value, UpperEstimationLimit.Value);
    85       var solution = new SymbolicRegressionSolution(model, ProblemData);
     74      var model = new SymbolicRegressionModel(bestTree, SymbolicDataAnalysisTreeInterpreterParameter.ActualValue, LowerEstimationLimitParameter.ActualValue.Value, UpperEstimationLimitParameter.ActualValue.Value);
     75      var solution = new SymbolicRegressionSolution(model, ProblemDataParameter.ActualValue);
    8676      if (ApplyLinearScaling.Value)
    8777        solution.ScaleModel();
Note: See TracChangeset for help on using the changeset viewer.