Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/07/16 15:40:51 (9 years ago)
Author:
gkronber
Message:

#2581: updated unit test to compile with r13658

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Tests/HeuristicLab.Algorithms.DataAnalysis-3.4/MctsSymbolicRegressionTest.cs

    r13654 r13661  
    44using System.Threading;
    55using HeuristicLab.Algorithms.DataAnalysis.MctsSymbolicRegression;
     6using HeuristicLab.Algorithms.DataAnalysis.MctsSymbolicRegression.Policies;
    67using HeuristicLab.Data;
    78using HeuristicLab.Optimization;
     
    274275    #endregion
    275276
    276  
     277
    277278    #region Nguyen
    278279    [TestMethod]
     
    505506      mctsSymbReg.Iterations = iterations;
    506507      mctsSymbReg.MaxVariableReferences = 10;
    507       mctsSymbReg.C = 2; // less greedy
     508      var ucbPolicy = new Ucb();
     509      ucbPolicy.C = 2;
     510      mctsSymbReg.Policy = ucbPolicy;
    508511      mctsSymbReg.SetSeedRandomly = false;
    509512      mctsSymbReg.Seed = 1234;
     
    540543      mctsSymbReg.Iterations = int.MaxValue; // stopping when all solutions have been enumerated
    541544      mctsSymbReg.MaxVariableReferences = maxNumberOfVariables;
    542       mctsSymbReg.C = 1000; // essentially breath first seach
     545      var ucbPolicy = new Ucb();
     546      ucbPolicy.C = 1000; // essentially breadth first search
     547      mctsSymbReg.Policy = ucbPolicy;
    543548      mctsSymbReg.AllowedFactors.SetItemCheckedState(mctsSymbReg.AllowedFactors.Single(s => s.Value.StartsWith("prod")), allowProd);
    544549      mctsSymbReg.AllowedFactors.SetItemCheckedState(mctsSymbReg.AllowedFactors.Single(s => s.Value.Contains("exp")), allowExp);
Note: See TracChangeset for help on using the changeset viewer.