Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/03/21 13:46:20 (2 years ago)
Author:
dpiringe
Message:

#3136

  • overrode the method GetActualValue in ValueLookupParameter to get the default value when the execution context is null
  • reverted the linear scaling logic for NMSESingleObjectiveConstraintsEvaluator
  • in SymbolicRegressionConstantOptimizationEvaluator: removed the usage of GenerateRowsToEvaluate because it uses lookup parameters
  • set the value of RelativeNumberOfEvaluatedSamplesParameter for SymbolicRegressionConstantOptimizationEvaluator in StructuredSymbolicRegressionSingleObjectiveProblem if Maximization = true and the SymbolicRegressionConstantOptimizationEvaluator is configured as evaluator
  • added the SubFunctionSymbol in TreeToAutoDiffTermConverter
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3136_Structural_GP/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SingleObjective/Evaluators/NMSESingleObjectiveConstraintsEvaluator.cs

    r18103 r18104  
    141141                            .GetSubtree(0); //Offset
    142142      var scaling = offset.GetSubtree(0);
    143 
     143     
    144144      //Check if tree contains offset and scaling nodes
    145145      if (!(offset.Symbol is Addition) || !(scaling.Symbol is Multiplication))
     
    155155
    156156      var targetValues = problemData.Dataset.GetDoubleValues(problemData.TargetVariable, rows);
    157       OnlineLinearScalingParameterCalculator.Calculate(estimatedValues, targetValues, out var alpha, out var beta,
    158         out var errorState);
     157      OnlineLinearScalingParameterCalculator.Calculate(estimatedValues, targetValues, out var alpha, out var beta, out var errorState);
    159158      if (errorState == OnlineCalculatorError.None) {
    160159        //Set alpha and beta to the scaling nodes from ia grammar
     
    249248          interpreter, tree,
    250249          problemData, rows,
    251           applyLinearScaling: false, // OptimizeConstants deletes the scaling terms -> wrong estimations
     250          applyLinearScaling: false, // Tree already contains scaling terms
    252251          ConstantOptimizationIterations,
    253252          updateVariableWeights: true,
     
    255254          upperEstimationLimit);
    256255     
    257       if (applyLinearScaling) // extra scaling terms, which are included in tree
    258         CalcLinearScalingTerms(tree, problemData, rows, interpreter);
    259 
     256      else if (applyLinearScaling) // extra scaling terms, which are included in tree
     257        CalcLinearScalingTerms(tree, problemData, rows, interpreter); 
     258     
    260259      return Calculate(
    261260        tree, problemData,
Note: See TracChangeset for help on using the changeset viewer.