Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/17/15 19:13:19 (9 years ago)
Author:
gkronber
Message:

#2283: implemented first crude version of extreme hunter algorithm in branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Problems.GrammaticalOptimization-gkr/Main/Program.cs

    r12298 r12876  
    5757        // var alg = new SequentialSearch(problem, 25, random, 0,
    5858        //   new HeuristicLab.Algorithms.Bandits.GrammarPolicies.GenericGrammarPolicy(problem, new UCB1TunedPolicy()));
    59         var policy = new GenericPolicy(problem);
     59        //var policy = new GenericPolicy(problem);
     60        //var policy = new GenericGrammarPolicy(problem, new ExtremeHunterPolicy());
     61        //var policy = new GenericGrammarPolicy(problem, new UCB1Policy());
     62        //var policy = new GenericGrammarPolicy(problem, new ActiveLearningPolicy(0.1));
     63        var policy = new GenericGrammarPolicy(problem, new ExtremeHunterPolicy(1.0E-2, 1E-2, 1));
    6064        var alg = new SequentialSearch(problem, 23, random, 0,
    6165          policy);
     
    7882            Console.SetCursorPosition(0, 0);
    7983            Console.WriteLine(iterations);
    80             WriteAlleleStatistics();
     84            //WriteAlleleStatistics();
    8185            Console.WriteLine(globalStatistics.BestSentenceQuality);
    8286            Console.WriteLine(globalStatistics.BestSentence);
    8387            Console.WriteLine(globalStatistics);
    84             //alg.PrintStats();
    85             policy.PrintStats();
     88            alg.PrintStats();
     89            //policy.PrintStats();
    8690            //ResetAlleleStatistics();
    8791          }
Note: See TracChangeset for help on using the changeset viewer.