Changeset 18119


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

#3140: fix compilation errors in test solution

Location:
branches/3140_NumberSymbol/HeuristicLab.Tests
Files:
4 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;
  • branches/3140_NumberSymbol/HeuristicLab.Tests/HeuristicLab.Problems.DataAnalysis.Symbolic-3.4/SymbolicExpressionTreeBottomUpSimilarityCalculatorTest.cs

    r16869 r18119  
    8282      var sw = new Stopwatch();
    8383
    84       var similarityCalculator = new SymbolicExpressionTreeBottomUpSimilarityCalculator { MatchVariableWeights = false, MatchConstantValues = false };
     84      var similarityCalculator = new SymbolicExpressionTreeBottomUpSimilarityCalculator { MatchVariableWeights = false, MatchParameterValues = false };
    8585
    8686      sw.Start();
     
    117117      var trees = Util.CreateRandomTrees(twister, ds, grammar, N, 1, 100, 0, 0);
    118118
    119       var similarityCalculator = new SymbolicExpressionTreeBottomUpSimilarityCalculator { MatchConstantValues = strict, MatchVariableWeights = strict };
     119      var similarityCalculator = new SymbolicExpressionTreeBottomUpSimilarityCalculator { MatchParameterValues = strict, MatchVariableWeights = strict };
    120120      var bottomUpSimilarity = 0d;
    121121      for (int i = 0; i < trees.Length - 1; ++i) {
Note: See TracChangeset for help on using the changeset viewer.