Changeset 10410


Ignore:
Timestamp:
01/28/14 16:26:29 (5 years ago)
Author:
gkronber
Message:

#2026 removed commented code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Problems.GPDL/CodeGenerator/MonteCarloTreeSearchCodeGen.cs

    r10409 r10410  
    2323
    2424  public sealed class ?IDENT?Solver {
    25     // private static double baseTerminalProbability = 0.05; // 5% of all samples are only a terminal node
    26     // private static double terminalProbabilityInc = 0.05; // for each level the probability to sample a terminal grows by 5%
    2725
    2826    private readonly ?IDENT?Problem problem;
     
    199197    }
    200198
    201     //private double TerminalProbForDepth(int depth) {
    202     //  return baseTerminalProbability + depth * terminalProbabilityInc;
    203     //}
    204199
    205200    public static void Main(string[] args) {
     
    210205      solver.Start();
    211206    }
    212     //private static void ParseArguments(string[] args) {
    213     //  var baseTerminalProbabilityRegex = new Regex(@""--terminalProbBase=(?<prob>.+)"");
    214     //  var terminalProbabilityIncRegex = new Regex(@""--terminalProbInc=(?<prob>.+)"");
    215     //  var helpRegex = new Regex(@""--help|/\?"");
    216     // 
    217     //  foreach(var arg in args) {
    218     //    var baseTerminalProbabilityMatch = baseTerminalProbabilityRegex.Match(arg);
    219     //    var terminalProbabilityIncMatch = terminalProbabilityIncRegex.Match(arg);
    220     //    var helpMatch = helpRegex.Match(arg);
    221     //    if(helpMatch.Success) { PrintUsage(); Environment.Exit(0); }
    222     //    else if(baseTerminalProbabilityMatch.Success) {
    223     //      baseTerminalProbability = double.Parse(baseTerminalProbabilityMatch.Groups[""prob""].Captures[0].Value, System.Globalization.CultureInfo.InvariantCulture);
    224     //      if(baseTerminalProbability < 0.0 || baseTerminalProbability > 1.0) throw new ArgumentException(""base terminal probability must lie in range [0.0 ... 1.0]"");
    225     //    } else if(terminalProbabilityIncMatch.Success) {
    226     //       terminalProbabilityInc = double.Parse(terminalProbabilityIncMatch.Groups[""prob""].Captures[0].Value, System.Globalization.CultureInfo.InvariantCulture);
    227     //       if(terminalProbabilityInc < 0.0 || terminalProbabilityInc > 1.0) throw new ArgumentException(""terminal probability increment must lie in range [0.0 ... 1.0]"");
    228     //    } else {
    229     //       Console.WriteLine(""Unknown switch {0}"", arg); PrintUsage(); Environment.Exit(0);
    230     //    }
    231     //  }
    232     //}
    233     //private static void PrintUsage() {
    234     //  Console.WriteLine(""Find a solution using monte carlo tree search."");
    235     //  Console.WriteLine();
    236     //  Console.WriteLine(""Parameters:"");
    237     //  Console.WriteLine(""\t--terminalProbBase=<prob>\tSets the probability of sampling a terminal alternative in a rule [Default: 0.05]"");
    238     //  Console.WriteLine(""\t--terminalProbInc=<prob>\tSets the increment for the probability of sampling a terminal alternative for each level in the syntax tree [Default: 0.05]"");
    239     //}
    240 
    241207
    242208    public ?IDENT?Solver(?IDENT?Problem problem) {
Note: See TracChangeset for help on using the changeset viewer.