Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/15/21 09:44:55 (3 years ago)
Author:
gkronber
Message:

#3140: fix compilation errors in test solution

Location:
branches/3140_NumberSymbol/HeuristicLab.Tests/HeuristicLab-3.3/Samples
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/3140_NumberSymbol/HeuristicLab.Tests/HeuristicLab-3.3/Samples/GPSymbolicClassificationSampleTest.cs

    r17180 r18119  
    109109      varSymbol.WeightManipulatorSigma = 0.05;
    110110      varSymbol.MultiplicativeWeightManipulatorSigma = 0.03;
    111       var constSymbol = grammar.Symbols.OfType<Constant>().Single();
    112       constSymbol.MaxValue = 20;
    113       constSymbol.MinValue = -20;
    114       constSymbol.ManipulatorMu = 0.0;
    115       constSymbol.ManipulatorSigma = 1;
    116       constSymbol.MultiplicativeManipulatorSigma = 0.03;
     111      var numSymbol = grammar.Symbols.OfType<Number>().Single();
     112      numSymbol.MaxValue = 20;
     113      numSymbol.MinValue = -20;
     114      numSymbol.ManipulatorMu = 0.0;
     115      numSymbol.ManipulatorSigma = 1;
     116      numSymbol.MultiplicativeManipulatorSigma = 0.03;
    117117      symbClassProblem.SymbolicExpressionTreeGrammar = grammar;
    118118
  • branches/3140_NumberSymbol/HeuristicLab.Tests/HeuristicLab-3.3/Samples/GPSymbolicRegressionSampleTest.cs

    r17180 r18119  
    110110      varSymbol.WeightManipulatorSigma = 0.05;
    111111      varSymbol.MultiplicativeWeightManipulatorSigma = 0.03;
    112       var constSymbol = grammar.Symbols.OfType<Constant>().Single();
    113       constSymbol.MaxValue = 20;
    114       constSymbol.MinValue = -20;
    115       constSymbol.ManipulatorMu = 0.0;
    116       constSymbol.ManipulatorSigma = 1;
    117       constSymbol.MultiplicativeManipulatorSigma = 0.03;
     112      var numSymbol = grammar.Symbols.OfType<Number>().Single();
     113      numSymbol.MaxValue = 20;
     114      numSymbol.MinValue = -20;
     115      numSymbol.ManipulatorMu = 0.0;
     116      numSymbol.ManipulatorSigma = 1;
     117      numSymbol.MultiplicativeManipulatorSigma = 0.03;
    118118      symbRegProblem.SymbolicExpressionTreeGrammar = grammar;
    119119
  • branches/3140_NumberSymbol/HeuristicLab.Tests/HeuristicLab-3.3/Samples/GPSymbolicRegressionSampleWithOSTest.cs

    r17948 r18119  
    184184      problem.MaximumFunctionArguments.Value = 0;
    185185
    186       var evaluator = new SymbolicRegressionConstantOptimizationEvaluator();
    187       evaluator.ConstantOptimizationIterations.Value = 5;
     186      var evaluator = new SymbolicRegressionParameterOptimizationEvaluator();
     187      evaluator.ParameterOptimizationIterations.Value = 5;
    188188      problem.EvaluatorParameter.Value = evaluator;
    189189      problem.RelativeNumberOfEvaluatedSamplesParameter.Hidden = true;
Note: See TracChangeset for help on using the changeset viewer.